From 3d73da234de7619d7763c4e9a49d069c15b98c55 Mon Sep 17 00:00:00 2001 From: Dave West Date: Fri, 16 May 2008 19:05:30 +0000 Subject: [PATCH] Removed the on_exit from sendcommand.c Why didn't I do it properly the first time 8-) --- citadel/sendcommand.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/citadel/sendcommand.c b/citadel/sendcommand.c index 0127536ab..ef76015de 100644 --- a/citadel/sendcommand.c +++ b/citadel/sendcommand.c @@ -73,6 +73,8 @@ void remove_lockfile(void) */ void nq_cleanup(int e) { + if (e == SIGALRM) + fprintf(stderr, "\nWatch dog time out.\n"); remove_lockfile(); exit(e); } @@ -161,12 +163,6 @@ void sendcommand_die(void) { } -void check_exit_code(int code, void *arg) -{ - if (code == SIGALRM) - fprintf(stderr, "\nWatch dog time out.\n"); -} - /* * main @@ -187,8 +183,6 @@ int main(int argc, char **argv) int ret, err; int server_shutting_down = 0; - on_exit (check_exit_code, NULL); - strcpy(ctdl_home_directory, DEFAULT_PORT); strcpy(cmd, ""); -- 2.39.2