From 7b16d7ca72e895b6b5c40e2190b7d0e8ed078d58 Mon Sep 17 00:00:00 2001 From: the xhr Date: Thu, 26 Aug 2021 12:55:40 +0200 Subject: Remove pleges for main process (and for sub procs upon termination) --- twind.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.3