summaryrefslogtreecommitdiff
path: root/mail/dbmail/files/patch-2.0.4_bug190_server.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-09-13 20:25:54 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-09-13 20:25:54 +0000
commitf12d116f994751f5bc64a3239c5c75658822bd2f (patch)
tree2d473662ff8ba23514e4d6a2786b1abee760d778 /mail/dbmail/files/patch-2.0.4_bug190_server.c
parentDocument 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/dbmail/files/patch-2.0.4_bug190_server.c')
-rw-r--r--mail/dbmail/files/patch-2.0.4_bug190_server.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/mail/dbmail/files/patch-2.0.4_bug190_server.c b/mail/dbmail/files/patch-2.0.4_bug190_server.c
deleted file mode 100644
index 23129a5c8b52..000000000000
--- a/mail/dbmail/files/patch-2.0.4_bug190_server.c
+++ /dev/null
@@ -1,41 +0,0 @@
-Index: server.c
-===================================================================
---- server.c (revision 1600)
-+++ server.c (revision 1758)
-@@ -119,9 +119,15 @@
- alarm(10);
-
- trace(TRACE_DEBUG, "StartServer(): children created, starting main service loop");
-- while (!GeneralStopRequested)
-- manage_restart_children();
--
-+ while (!GeneralStopRequested) {
-+ if (db_connect() != 0) {
-+ GeneralStopRequested=1;
-+ } else {
-+ db_disconnect();
-+ manage_restart_children();
-+ }
-+ }
-+
- manage_stop_children();
- scoreboard_delete();
-
-@@ -131,6 +137,8 @@
-
- void ParentSigHandler(int sig, siginfo_t * info, void *data)
- {
-+ int saved_errno = errno;
-+
- if (ParentPID != getpid()) {
- trace(TRACE_INFO,
- "ParentSigHandler(): i'm no longer father");
-@@ -162,6 +170,8 @@
- default:
- GeneralStopRequested = 1;
- }
-+
-+ errno = saved_errno;
- }
-
-