mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Run pledge only on OpenBSD.
This commit is contained in:
parent
4e51ce57a7
commit
669631e5fa
2
calmwm.c
2
calmwm.c
@ -114,8 +114,10 @@ main(int argc, char **argv)
|
|||||||
x_init(display_name);
|
x_init(display_name);
|
||||||
cwm_status = CWM_RUNNING;
|
cwm_status = CWM_RUNNING;
|
||||||
|
|
||||||
|
#ifdef __OpenBSD__
|
||||||
if (pledge("stdio rpath proc exec", NULL) == -1)
|
if (pledge("stdio rpath proc exec", NULL) == -1)
|
||||||
err(1, "pledge");
|
err(1, "pledge");
|
||||||
|
#endif
|
||||||
|
|
||||||
while (cwm_status == CWM_RUNNING)
|
while (cwm_status == CWM_RUNNING)
|
||||||
xev_process();
|
xev_process();
|
||||||
|
Loading…
Reference in New Issue
Block a user