summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthe xhr <xhr@giessen.ccc.de>2021-08-26 12:55:40 +0200
committerthe xhr <xhr@giessen.ccc.de>2021-08-26 12:55:40 +0200
commit7b16d7ca72e895b6b5c40e2190b7d0e8ed078d58 (patch)
treec11e07ecf06216804d9c20aed5d22f9dda80ea4f
parent53d188a0b3f1abce9808f3c4e68126f38f91b998 (diff)
Remove pleges for main process (and for sub procs upon termination)HEADmaster
-rw-r--r--twind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/twind.c b/twind.c
index e42e81b..7bba2a5 100644
--- a/twind.c
+++ b/twind.c
@@ -187,6 +187,11 @@ organize_termination(void)
close_twind_logs();
+#ifdef __OpenBSD__
+ if (pledge("stdio", NULL) == -1)
+ fatalx("pledge");
+#endif /* __OpenBSD__ */
+
log_debug("waiting for sub processes to terminate");
for (;;) {
sub_pid = wait(NULL);
generated by cgit on OpenBSD