aboutsummaryrefslogtreecommitdiff
path: root/mail/dbmail22/files/patch-2.0.7_001_266
blob: b3650d832c24cb9f39aad563b0d791403a4e2ad6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- server.c.orig	Wed Aug 24 13:35:38 2005
+++ server.c	Tue Sep 13 22:21:59 2005
@@ -119,7 +119,7 @@
   
  	trace(TRACE_DEBUG, "StartServer(): children created, starting main service loop");
  	while (!GeneralStopRequested) {
-		if (db_connect() != 0) {
+		if (db_check_connection() != 0) {
 			
 			if (! stopped) 
 				manage_stop_children();
@@ -128,12 +128,11 @@
 			sleep(10);
 			
 		} else {
-			if (stopped) 
+			if (stopped) {
+				manage_restart_children();
 				stopped=0;
- 			
-			db_disconnect();
+			}
 
-			manage_restart_children();
 			manage_spare_children();
 
 			sleep(1);