use SIG_DFL and not SIG_IGN for SIGCHLD.
from "Todd C. Miller" <Todd.Miller@courtesan.com> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10810 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -281,7 +281,7 @@ int krb5_dfs_pag(context, flag, principal, luser)
|
||||
|
||||
/* Make sure that telnetd.c's SIGCHLD action don't happen right now... */
|
||||
memset((char *)&newsig, 0, sizeof(newsig));
|
||||
newsig.sa_handler = SIG_IGN;
|
||||
newsig.sa_handler = SIG_DFL;
|
||||
sigaction(SIGCHLD, &newsig, &oldsig);
|
||||
|
||||
pid = fork();
|
||||
|
Reference in New Issue
Block a user