* `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"
#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);
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;
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 ) {