diff options
author | se <se@FreeBSD.org> | 2001-04-09 01:34:49 +0800 |
---|---|---|
committer | se <se@FreeBSD.org> | 2001-04-09 01:34:49 +0800 |
commit | b3495abcbfc452924de57afe88d16a6c38c36834 (patch) | |
tree | 062f605de36aecb8b8c0b73fb6c5ad25bc0b99ab | |
parent | 828dc5659a535ca16dd7f459ed2d0f02078e38af (diff) | |
download | freebsd-ports-gnome-b3495abcbfc452924de57afe88d16a6c38c36834.tar.gz freebsd-ports-gnome-b3495abcbfc452924de57afe88d16a6c38c36834.tar.zst freebsd-ports-gnome-b3495abcbfc452924de57afe88d16a6c38c36834.zip |
Fix SIGCHLD handling.
-rw-r--r-- | net-mgmt/argus/files/patch-ac | 29 | ||||
-rw-r--r-- | net/argus/files/patch-ac | 29 |
2 files changed, 58 insertions, 0 deletions
diff --git a/net-mgmt/argus/files/patch-ac b/net-mgmt/argus/files/patch-ac new file mode 100644 index 000000000000..b1edf28f5411 --- /dev/null +++ b/net-mgmt/argus/files/patch-ac @@ -0,0 +1,29 @@ +--- server/ArgusOutput.c~ Thu Mar 15 22:19:42 2001 ++++ server/ArgusOutput.c Fri Apr 6 17:08:28 2001 +@@ -365,5 +365,5 @@ + sigignore(SIGINT); + sigignore(SIGTERM); +- sigignore(SIGCHLD); ++// sigignore(SIGCHLD); + #else + (void) signal (SIGPIPE, SIG_IGN); +@@ -371,9 +371,10 @@ + (void) signal (SIGINT, SIG_IGN); + (void) signal (SIGTERM, SIG_IGN); +- (void) signal (SIGCHLD, SIG_IGN); ++// (void) signal (SIGCHLD, SIG_IGN); + #endif + + (void) signal (SIGUSR1, (void (*)(int)) ArgusUsr1Sig); + (void) signal (SIGUSR2, (void (*)(int)) ArgusUsr2Sig); ++ (void) signal (SIGCHLD, (void (*)(int)) ArgusChildExit); + + if ((ArgusInputSocket = ArgusNewSocket (lfd)) != NULL) { +@@ -436,4 +437,7 @@ + } + ++ if (ArgusUpdateTime()) ++ ArgusHandleData(NULL, NULL, 0, NULL); ++ + if ((kill (ArgusParentPid, 0)) < 0) { + ArgusOutputCleanUp(0); diff --git a/net/argus/files/patch-ac b/net/argus/files/patch-ac new file mode 100644 index 000000000000..b1edf28f5411 --- /dev/null +++ b/net/argus/files/patch-ac @@ -0,0 +1,29 @@ +--- server/ArgusOutput.c~ Thu Mar 15 22:19:42 2001 ++++ server/ArgusOutput.c Fri Apr 6 17:08:28 2001 +@@ -365,5 +365,5 @@ + sigignore(SIGINT); + sigignore(SIGTERM); +- sigignore(SIGCHLD); ++// sigignore(SIGCHLD); + #else + (void) signal (SIGPIPE, SIG_IGN); +@@ -371,9 +371,10 @@ + (void) signal (SIGINT, SIG_IGN); + (void) signal (SIGTERM, SIG_IGN); +- (void) signal (SIGCHLD, SIG_IGN); ++// (void) signal (SIGCHLD, SIG_IGN); + #endif + + (void) signal (SIGUSR1, (void (*)(int)) ArgusUsr1Sig); + (void) signal (SIGUSR2, (void (*)(int)) ArgusUsr2Sig); ++ (void) signal (SIGCHLD, (void (*)(int)) ArgusChildExit); + + if ((ArgusInputSocket = ArgusNewSocket (lfd)) != NULL) { +@@ -436,4 +437,7 @@ + } + ++ if (ArgusUpdateTime()) ++ ArgusHandleData(NULL, NULL, 0, NULL); ++ + if ((kill (ArgusParentPid, 0)) < 0) { + ArgusOutputCleanUp(0); |