aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
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;