Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
c3a2e01
)
Pledge on OpenBSD
author
Klemens Nanni <
[email protected]
>
Fri, 25 May 2018 05:56:27 +0000
(07:56 +0200)
committer
Hiltjo Posthuma <
[email protected]
>
Fri, 25 May 2018 09:49:30 +0000
(11:49 +0200)
dwm.c
diff
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
bb95e26
..
09feae3
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-2137,6
+2137,10
@@
main(int argc, char *argv[])
die("dwm: cannot open display");
checkotherwm();
setup();
die("dwm: cannot open display");
checkotherwm();
setup();
+#ifdef __OpenBSD__
+ if (pledge("stdio proc exec", NULL) == -1)
+ die("pledge");
+#endif /* __OpenBSD__ */
scan();
run();
cleanup();
scan();
run();
cleanup();