Blame at-3.1.7-sigchld.patch
|
cvsdist |
a34e68 |
--- at-3.1.7/atd.c.sigchld Mon May 24 16:56:41 1999
|
|
cvsdist |
a34e68 |
+++ at-3.1.7/atd.c Mon May 24 16:58:57 1999
|
|
cvsdist |
a34e68 |
@@ -348,6 +348,9 @@
|
|
cvsdist |
a34e68 |
if (setuid(uid) < 0)
|
|
cvsdist |
a34e68 |
perr("Cannot set user id");
|
|
cvsdist |
a34e68 |
|
|
cvsdist |
a34e68 |
+ if (SIG_ERR == signal(SIGCHLD, SIG_DFL))
|
|
cvsdist |
a34e68 |
+ perr("Cannot reset signal handler to default");
|
|
cvsdist |
a34e68 |
+
|
|
cvsdist |
a34e68 |
chdir("/");
|
|
cvsdist |
a34e68 |
|
|
cvsdist |
a34e68 |
if (execle("/bin/sh", "sh", (char *) NULL, nenvp) != 0)
|