*/
void nq_cleanup(int e)
{
+ if (e == SIGALRM)
+ fprintf(stderr, "\nWatch dog time out.\n");
remove_lockfile();
exit(e);
}
}
-void check_exit_code(int code, void *arg)
-{
- if (code == SIGALRM)
- fprintf(stderr, "\nWatch dog time out.\n");
-}
-
/*
* main
int ret, err;
int server_shutting_down = 0;
- on_exit (check_exit_code, NULL);
-
strcpy(ctdl_home_directory, DEFAULT_PORT);
strcpy(cmd, "");
else
safestrncpy(relhome, &argv[a][2],
sizeof relhome);
- home_specified = 1;
home=1;
} else if (!strncmp(argv[a], "-w", 2)) {
watchdog = atoi(&argv[a][2]);