diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-20 16:15:17 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-20 16:15:17 +0200 |
commit | 50bb59a86d354f775f78198b7ecf27ce5300dacf (patch) | |
tree | 36bb89490d64eff22e16385a04911cc8bf9ecf62 /src/main.c | |
parent | 9c8dc27ee791b24e7325fa065cb57fa9b1339d11 (diff) |
POTD skeleton #66.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -74,7 +74,7 @@ int main(int argc, char *argv[]) } caps_default_filter(); - pseccomp_init(&psc); + pseccomp_init(&psc, 0); if (pseccomp_default_rules(psc)) FATAL("%s", "SECCOMP: adding default rules"); pseccomp_free(&psc); @@ -148,8 +148,9 @@ int main(int argc, char *argv[]) if (child_pid == jail_pid || child_pid == rdr_pid) { E2("%s daemon with pid %d terminated, exiting", - (child_pid == jail_pid ? "Jail" : "Server"), + (child_pid == jail_pid ? "Jail" : "Redirector"), (child_pid == jail_pid ? jail_pid : rdr_pid)); + kill(0, SIGTERM); break; } } |