diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-13 20:25:54 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-13 20:25:54 +0000 |
commit | f12d116f994751f5bc64a3239c5c75658822bd2f (patch) | |
tree | 2d473662ff8ba23514e4d6a2786b1abee760d778 /mail/dbmail21/files/patch-2.0.4_bug199_server.c | |
parent | Document unzip -- permission race vulnerability. [1] (diff) |
- Update to 2.0.7
- Add patch for bug 266
- Reset maintainership (3 months of maintainer timeouts)
- Assign maintainership to a volunteer
PR: ports/85455, ports/85763
Submitted by: Mark Starovoytov <mark_sf@kikg.ifmo.ru>
Approved by: maintainer timeout (seanc; 14 days)
Diffstat (limited to 'mail/dbmail21/files/patch-2.0.4_bug199_server.c')
-rw-r--r-- | mail/dbmail21/files/patch-2.0.4_bug199_server.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/mail/dbmail21/files/patch-2.0.4_bug199_server.c b/mail/dbmail21/files/patch-2.0.4_bug199_server.c deleted file mode 100644 index 6786e6c8fc60..000000000000 --- a/mail/dbmail21/files/patch-2.0.4_bug199_server.c +++ /dev/null @@ -1,35 +0,0 @@ -Index: server.c -=================================================================== ---- server.c (revision 1763) -+++ server.c (revision 1787) -@@ -69,7 +69,7 @@ - - act.sa_sigaction = ParentSigHandler; - sigemptyset(&act.sa_mask); -- act.sa_flags = SA_SIGINFO; -+ act.sa_flags = SA_SIGINFO | SA_NOCLDSTOP; - - sigaction(SIGCHLD, &act, 0); - sigaction(SIGINT, &act, 0); -@@ -152,6 +152,7 @@ - - void ParentSigHandler(int sig, siginfo_t * info, void *data) - { -+ pid_t chpid; - int saved_errno = errno; - - if (ParentPID != getpid()) { -@@ -175,7 +176,12 @@ - break; - - case SIGCHLD: -- break; /* ignore, wait for child in main loop */ -+ /* ignore, wait for child in main loop */ -+ /* but we need to catch zombie */ -+ if ((chpid = waitpid(-1,&sig,WNOHANG)) > 0) -+ scoreboard_release(chpid); -+ -+ break; - - case SIGHUP: - trace(TRACE_DEBUG, |