aboutsummaryrefslogtreecommitdiff
path: root/net/openldap24-server/files/patch-servers::slapd::daemon.c
blob: 09e9b11f9704b9aca95691b8dd7d6cd90f8fb2e3 (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
28
29
30
31
32
--- servers/slapd/daemon.c	Mon Oct 13 03:57:02 2003
+++ servers/slapd/daemon.c	Sun Oct 19 15:33:56 2003
@@ -1357,8 +1357,8 @@
 				ldap_pvt_thread_mutex_unlock( &syncrepl_rq.rq_mutex );
 				ldap_pvt_thread_pool_submit( &connection_pool,
 											rtask->routine, (void *) rtask );
+				ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex );
 			}
-			ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex );
 			rtask = ldap_pvt_runqueue_next_sched( &syncrepl_rq, &cat );
 		}
 		ldap_pvt_thread_mutex_unlock( &syncrepl_rq.rq_mutex );
@@ -2077,18 +2077,10 @@
 	 * SIGBREAK is generated when a user logs out.
 	 */
 
-#if 0
 #if HAVE_NT_SERVICE_MANAGER && SIGBREAK
 	if (is_NT_Service && sig == SIGBREAK)
-#ifdef NEW_LOGGING
-	    LDAP_LOG( CONNECTION, CRIT,
-		    "slap_sig_shutdown: SIGBREAK ignored.\n", 0, 0, 0 );
-#else
-	    Debug(LDAP_DEBUG_TRACE, "slap_sig_shutdown: SIGBREAK ignored.\n",
-		  0, 0, 0);
-#endif
+		;
 	else
-#endif
 #endif
 #ifdef SIGHUP
 	if (sig == SIGHUP && global_gentlehup && slapd_gentle_shutdown == 0)