[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: NT Service exit (ITS#2769)
> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of w.amin@sdv.com
> Full_Name: Waqar Amin
> Version: 2.1.22
> OS: win2k
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (192.169.41.34)
>
>
> Hi,
>
> I am using Windows 2000, and now facing problem with version
> 2.1.22 and onward.
> I am able to start service successfully, but once i logout
> and login again;
> service stops automatically.
>
> But prior to 2.1.22 all version are ok.
> I think it is a bug (i have confirmed tested in 2.1.23 also
> same problem).
Thanks for the report. You're right, this was broken in 2.1.22. I've now
patched this in CVS. You can try this patch to slapd/daemon.c on your 2.1.23
source:
diff -u -r1.211.2.25 daemon.c
--- daemon.c 21 Jun 2003 17:22:58 -0000 1.211.2.25
+++ daemon.c 15 Oct 2003 10:17:38 -0000
@@ -2029,18 +2029,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)
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support