commit 7b16d7ca72e895b6b5c40e2190b7d0e8ed078d58 from: the xhr date: Thu Aug 26 10:55:40 2021 UTC Remove pleges for main process (and for sub procs upon termination) commit - 53d188a0b3f1abce9808f3c4e68126f38f91b998 commit + 7b16d7ca72e895b6b5c40e2190b7d0e8ed078d58 blob - e42e81b170f8e96879052c9ee5fece5535848139 blob + 7bba2a56e2271f8009a94b59d6c6322f57edef0a --- twind.c +++ 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);