]> git.pld-linux.org Git - packages/anacron.git/blame - anacron-SIGTERM.patch
fixed a small typo
[packages/anacron.git] / anacron-SIGTERM.patch
CommitLineData
01ea286c 1diff -urN anacron-2.3.orig/main.c anacron-2.3/main.c
2--- anacron-2.3.orig/main.c Fri Jun 23 00:58:07 2000
3+++ anacron-2.3/main.c Tue Mar 19 10:04:03 2002
4@@ -265,6 +265,12 @@
5 sa.sa_mask = ss;
6 sa.sa_flags = 0;
7 if (sigaction(SIGUSR1, &sa, NULL)) die_e("sigaction error");
8+
9+ /* setup SIGTERM handler */
10+ sa.sa_handler = handle_sigusr1;
11+ sa.sa_mask = ss;
12+ sa.sa_flags = 0;
13+ if (sigaction(SIGTERM, &sa, NULL)) die_e("sigaction error");
14 }
15
16 static void
17@@ -289,7 +295,7 @@
18 wait_signal();
19 if (got_sigchld) tend_children();
20 got_sigchld = 0;
21- if (got_sigusr1) explain("Received SIGUSR1");
22+ if (got_sigusr1) explain("Received SIGUSR1 or SIGTERM");
23 got_sigusr1 = 0;
24 }
25 }
This page took 0.05485 seconds and 4 git commands to generate.