[Bug 407428] Re: sshd zombie processes and strange behavior after karmic upgrade
Wisefox
shangxiaole at gmail.com
Tue Sep 1 04:05:42 BST 2009
Well. Provide a piece of code as a workaround. compile the following C code:
========================
#include "signal.h"
int main( int argc, char ** argv )
{
sigset_t oldset, newset;
sigfillset( &newset );
sigprocmask( SIG_UNBLOCK, &newset, &oldset );
int pid = fork();
if ( pid == 0 )
{
execvp( argv[1], &(argv[1]) );
perror("\n");
}
else
{
printf("father return;\n");
}
}
=========================
gcc -o sigwapper thisfile.c
=========================
Use the program to fix the problem as workaround. need root privilege :
=========================
$ ./sigwapper /etc/init.d/ssh restart
=========================
Check if the C + c is back or not.
--
sshd zombie processes and strange behavior after karmic upgrade
https://bugs.launchpad.net/bugs/407428
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.
More information about the Ubuntu-server-bugs
mailing list