aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-12-06 17:00:14 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-12-06 17:00:14 +0000
commit52599fc1f8513c2fefad8d6828b8b8ddcb08f504 (patch)
tree128907c260c877afa1c513ee5a5aab2d4ee4b0e8 /src
parente4cbbdca8761ce2467c0bb171e2fc695e2842be5 (diff)
downloadinitscripts-52599fc1f8513c2fefad8d6828b8b8ddcb08f504.tar
initscripts-52599fc1f8513c2fefad8d6828b8b8ddcb08f504.tar.gz
initscripts-52599fc1f8513c2fefad8d6828b8b8ddcb08f504.tar.bz2
initscripts-52599fc1f8513c2fefad8d6828b8b8ddcb08f504.tar.xz
initscripts-52599fc1f8513c2fefad8d6828b8b8ddcb08f504.zip
tyops
Diffstat (limited to 'src')
-rw-r--r--src/ppp-watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ppp-watch.c b/src/ppp-watch.c
index 66bb03dc..62d20d01 100644
--- a/src/ppp-watch.c
+++ b/src/ppp-watch.c
@@ -106,7 +106,7 @@ set_signal(int signo, void (*handler)(int)) {
struct sigaction act;
act.sa_handler = handler;
- act.flags = SA_RESTART;
+ act.sa_flags = SA_RESTART;
sigemptyset(&act.sa_mask);
sigaction(signo, &act, NULL);
}
@@ -139,7 +139,7 @@ detach(int now, int parentExitCode, char *device) {
/* forward likely signals to the main process; we will
* react later
*/
- theChild = child
+ theChild = child;
set_signal(SIGINT, forward_signal);
set_signal(SIGTERM, forward_signal);
set_signal(SIGHUP, forward_signal);