This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Small nscd Sighandler fix
- From: Thorsten Kukuk <kukuk at suse dot de>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 20 Feb 2004 14:46:28 +0100
- Subject: Small nscd Sighandler fix
- Organization: SuSE Linux AG, Nuernberg, Germany
Hi,
here is a small fix for the nscd signal handler. With exit() called,
nscd will exit with a seg.fault.
2004-02-20 Thorsten Kukuk <kukuk@suse.de>
* nscd/nscd.c (termination_handler): Use _exit instead of exit
--- nscd/nscd.c 17 Feb 2004 05:15:31 -0000 1.30
+++ nscd/nscd.c 19 Feb 2004 13:19:55 -0000
@@ -400,7 +400,7 @@
/* Clean up pid file. */
unlink (_PATH_NSCDPID);
- exit (EXIT_SUCCESS);
+ _exit (EXIT_SUCCESS);
}
/* Returns 1 if the process in pid file FILE is running, 0 if not. */
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE Linux AG Maxfeldstr. 5 D-90409 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B