On Thu, Jun 14, 2001 at 10:30:23AM -0600, dany allard wrote:
Could you give me more information. What do you mean by Problems? Is it possible that this could hang the ssh process?
On some platforms and to different (platform dependent) degrees, a ssh process will not shutdown, as it thinks that a connection to the server is still open. The test is ssh some_server ... sleep 20 & ; exit It then hangs for 20 seconds before exiting. This can be very annoying when instead of "sleep 20" you e.g. started something long running into background, that does not properly daemonize. After e.g. /etc/init.d/mysqld start your 'exit' would hang, as safe_mysqld is put to background with "&", but it is not a "real daemon". On openssh-unix-dev it was discussed, that this problem is caused by the select() implementations and the open file descriptors. A workaround would be /etc/init.d/mysqld start > /dev/null 2>&1 so that no open file descriptors are left. At least Linux and HP-UX are affected (and I have precisely these platforms). A good solution to this problem is not trivial, as on premature close file transfers with scp might be truncated. This topic is actively discussed on openssh-unix-dev for quite some time now but no final solution was yet found (so the problem is also there in 2.9p1). Best regards, Lutz -- Lutz Jaenicke Lutz.Jaenicke@aet.TU-Cottbus.DE BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/ Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129 Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153