From 9c813442dd8ce4d140a114a06287cf52217daae1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 18 Oct 2009 04:21:21 +0200 Subject: testd: use SIGTERM instead of SIGINT for shutting down daemon --- examples/testd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/testd.c b/examples/testd.c index 7e0d791..fde6195 100644 --- a/examples/testd.c +++ b/examples/testd.c @@ -54,10 +54,10 @@ int main(int argc, char *argv[]) { if (argc >= 2 && !strcmp(argv[1], "-k")) { int ret; - /* Kill daemon with SIGINT */ + /* Kill daemon with SIGTERM */ /* Check if the new function daemon_pid_file_kill_wait() is available, if it is, use it. */ - if ((ret = daemon_pid_file_kill_wait(SIGINT, 5)) < 0) + if ((ret = daemon_pid_file_kill_wait(SIGTERM, 5)) < 0) daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno)); return ret < 0 ? 1 : 0; @@ -161,7 +161,7 @@ int main(int argc, char *argv[]) { case SIGINT: case SIGQUIT: case SIGTERM: - daemon_log(LOG_WARNING, "Got SIGINT, SIGQUIT or SIGTERM"); + daemon_log(LOG_WARNING, "Got SIGINT, SIGQUIT or SIGTERM."); quit = 1; break; -- cgit