summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlemens Nanni2018-05-25 07:56:27 +0200
committerHiltjo Posthuma2018-05-25 11:49:30 +0200
commit85d8d4b90b90e50aa300d586c0367636dc678344 (patch)
treefd1080a9b76c7a2b1bc7fbf9fa045c2f99b16b5d
parentea734233d95102226f8ef16cc7165a296f02e76a (diff)
downloadaur-85d8d4b90b90e50aa300d586c0367636dc678344.tar.gz
Pledge on OpenBSD
-rw-r--r--dwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index bb95e26c07e..09feae368ce 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2137,6 +2137,10 @@ main(int argc, char *argv[])
die("dwm: cannot open display");
checkotherwm();
setup();
+#ifdef __OpenBSD__
+ if (pledge("stdio proc exec", NULL) == -1)
+ die("pledge");
+#endif /* __OpenBSD__ */
scan();
run();
cleanup();