From: Zoran V. <vas...@us...> - 2005-10-08 16:37:59
|
Update of /cvsroot/naviserver/naviserver/nsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28277/nsd Modified Files: nsmain.c Log Message: Tightened check on process existence in WaitSIGALRMHandler Index: nsmain.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsd/nsmain.c,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** nsmain.c 8 Oct 2005 16:26:25 -0000 1.20 --- nsmain.c 8 Oct 2005 16:37:52 -0000 1.21 *************** *** 1177,1181 **** WatchdogSIGALRMHandler(int sig) { ! if (kill((pid_t) nsconf.pid, 0)) { SysLog(LOG_WARNING, "watchdog: server %d terminated?", nsconf.pid); nsconf.pid = 0; --- 1177,1181 ---- WatchdogSIGALRMHandler(int sig) { ! if (kill((pid_t) nsconf.pid, 0) && errno == ESRCH) { SysLog(LOG_WARNING, "watchdog: server %d terminated?", nsconf.pid); nsconf.pid = 0; |