mirror of
https://git.suckless.org/dwm
synced 2024-12-27 03:16:32 +00:00
Pledge on OpenBSD
This commit is contained in:
parent
c3a2e016bb
commit
f40f86fa87
1 changed files with 4 additions and 0 deletions
4
dwm.c
4
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();
|
||||
|
|
Loading…
Reference in a new issue