On Wed, 6 Jun 2001, Greg Wooledge wrote: :> this is caused by select() being restarted for SIGCHLD on HP-UX due to the :> use of SA_RESTART. can you try the patch below and see if it fixes the :> problem for HP-UX and linux? i've tested on HP-UX 11.11. : :> -#if defined(SA_RESTART) :> +#if 0 : :This doesn't seem to make any difference on HP-UX 10.20. But then, :I'm using OpenSSH 2.5.2p2 instead of 2.9.x or CVS -- would that matter? [changing to openssh-unix-dev] i haven't used 10.20 for a long time. i'm currently only working with 11.11. i don't know if select() is restarted when SA_RESTART on 10.20, but i'd guess it is. while 2.5.2p2 has the SA_RESTART change, it would be best to test with 2.9. so: does 10.20 hang with 2.9 without the patch? with the patch?
On Wed, Jun 06, 2001 at 02:16:13PM -0700, Kevin Steves wrote:> does 10.20 hang with 2.9 without the patch? with the patch?It hangs both with and without the patch. Every time. (It certainly doesn't act like a race condition, as someone else mentioned.) Just to refresh memories, this is the symptom: box1$ ssh somewhere somewhere$ sleep 500 & somewhere$ logout (hangs) Then, if I kill the sleep process in another window, the connection is immediately terminated and everything is back to normal. Using "nohup sleep 500 >/dev/null 2>&1 &" does the same thing. Using bash2's "disown" command doesn't help, either.
On Thu, Jun 07, 2001 at 09:28:32AM -0400, Greg Wooledge wrote:> Using "nohup sleep 500 >/dev/null 2>&1 &" does the same thing.How about these: nohup sleep 500 >/dev/null 2>&1 </dev/null & nohup sleep 500 >&- 2>&- <&- &
> I'm using Linux on two machines and I get this problem > fairly often (when I'm logged on for more than 6 > hours continuously).Under Linux, a patch already exists for the hang-on-exit bug (without data loss side affects). See http://www.math.ualberta.ca/imaging/snfs/ -- John Bowman University of Alberta http://www.math.ualberta.ca/~bowman