HPUX: ssh hangs after shell exit

Aaron Bush abush at microcenter.com
Fri Jun 8 00:04:03 EST 2001


Kevin Steves wrote:

> can you try the patch at the end?  hp-ux (and possibly the other systems
> you mentioned) restart select() when SA_RESTART which we were setting for
> SIGCHLD, and we should not have select() restarted.
> 

> 
> Index: misc.c
> ===================================================================
> RCS file: /var/cvs/openssh/misc.c,v
> retrieving revision 1.20
> diff -u -r1.20 misc.c
> --- misc.c      2001/05/12 00:08:38     1.20
> +++ misc.c      2001/06/05 20:55:54
> @@ -220,7 +220,7 @@
>                 memset(&sa, 0, sizeof(sa));
>                 sigemptyset(&sa.sa_mask);
>                 sa.sa_flags = 0;
> -#if defined(SA_RESTART)
> +#if 0
>                 if (sig == SIGCHLD)
>                         sa.sa_flags |= SA_RESTART;
>  #endif

Sorry for the delay in reponse...
This patch has corrected the problems i have been having.
I have been looking for documentation from HP regarding the behavior of
SA_RESTART and have found nothing so far.

Thanks,
-ab



More information about the openssh-unix-dev mailing list