From: thib Date: Thu, 29 Aug 2002 17:33:19 +0000 (+0000) Subject: call directly xexit() instead of raise(SIGTERM) when using option -o X-Git-Tag: ver1564~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de81c5f0b353619991e3c2eb4922bc22edfa48e7;p=fcron call directly xexit() instead of raise(SIGTERM) when using option -o --- diff --git a/fcron.c b/fcron.c index 54db4b6..2b27217 100644 --- a/fcron.c +++ b/fcron.c @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcron.c,v 1.65 2002-08-25 17:11:52 thib Exp $ */ + /* $Id: fcron.c,v 1.66 2002-08-29 17:33:19 thib Exp $ */ #include "fcron.h" @@ -33,7 +33,7 @@ #include "socket.h" #endif -char rcs_info[] = "$Id: fcron.c,v 1.65 2002-08-25 17:11:52 thib Exp $"; +char rcs_info[] = "$Id: fcron.c,v 1.66 2002-08-29 17:33:19 thib Exp $"; void main_loop(void); void check_signal(void); @@ -678,14 +678,8 @@ main_loop() for (;;) { - /* */ - debug("sleep %ld seconds", stime); - /* */ #ifdef HAVE_GETTIMEOFDAY #ifdef FCRONDYN - /* */ - debug("using select()"); - /* */ gettimeofday(&tv, NULL); tv.tv_sec = (stime > 1) ? stime - 1 : 0; tv.tv_usec = 1000000 - tv.tv_usec; @@ -712,8 +706,8 @@ main_loop() run_serial_job(); if ( once ) { - explain("Running with option once : exiting ... (SIGTERM raise()d)"); - raise(SIGTERM); + explain("Running with option once : exiting ... "); + xexit(EXIT_OK); } if ( save <= now ) {