diff options
Diffstat (limited to 'mail/dbmail-devel/files/patch-2.0.4_bug190_server.c')
-rw-r--r-- | mail/dbmail-devel/files/patch-2.0.4_bug190_server.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mail/dbmail-devel/files/patch-2.0.4_bug190_server.c b/mail/dbmail-devel/files/patch-2.0.4_bug190_server.c deleted file mode 100644 index 23129a5c8b52..000000000000 --- a/mail/dbmail-devel/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; - } - - |