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 7fe4884..711bf8a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -377,11 +377,11 @@ int main(int argc, char *argv[])
E2("%s daemon with pid %d terminated, exiting",
(child_pid == jl_pid ? "Jail" : "Redirector"),
(child_pid == jl_pid ? jl_pid : rdr_pid));
- kill(getpid(), SIGTERM);
- break;
} else W2("Process with pid %d terminated", child_pid);
+ break;
}
log_close();
+ kill(getpid(), SIGTERM);
return 0;
}