Run pledge only on OpenBSD.
This commit is contained in:
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user