summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorKlemens Nanni <kn@openbsd.org>2018-05-25 01:56:27 -0400
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-05-25 05:49:30 -0400
commitf40f86fa873bc4acccdf3d929aa0f786993ae31d (patch)
tree60c959b3dd50c4b6131d7aae40517125764d17de /dwm.c
parentconfig.def.h: ClkTagBar missing from comment (diff)
downloaddwm-f40f86fa873bc4acccdf3d929aa0f786993ae31d.tar.gz
dwm-f40f86fa873bc4acccdf3d929aa0f786993ae31d.tar.bz2
dwm-f40f86fa873bc4acccdf3d929aa0f786993ae31d.zip
Pledge on OpenBSD
Diffstat (limited to '')
-rw-r--r--dwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index bb95e26..09feae3 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();