summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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