aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-05-21 13:56:56 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-05-21 13:56:56 +0200
commit472a5a7a0078b1d2792cb52003e3bd50e208cafc (patch)
treecb8383f7df000e45d0f0f8ee4d5c9fc2927b0b07 /src/main.c
parent50bb59a86d354f775f78198b7ecf27ce5300dacf (diff)
POTD skeleton #67.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 310dbe5..e1c0229 100644
--- a/src/main.c
+++ b/src/main.c
@@ -150,9 +150,9 @@ int main(int argc, char *argv[])
E2("%s daemon with pid %d terminated, exiting",
(child_pid == jail_pid ? "Jail" : "Redirector"),
(child_pid == jail_pid ? jail_pid : rdr_pid));
- kill(0, SIGTERM);
+ kill(getpid(), SIGTERM);
break;
- }
+ } else W2("Process with pid %d terminated", child_pid);
}
return 0;