Run pledge only on OpenBSD.

This commit is contained in:
Christian Neukirchen 2015-11-16 14:47:21 +01:00
parent 4e51ce57a7
commit 669631e5fa

View File

@ -114,8 +114,10 @@ main(int argc, char **argv)
x_init(display_name);
cwm_status = CWM_RUNNING;
#ifdef __OpenBSD__
if (pledge("stdio rpath proc exec", NULL) == -1)
err(1, "pledge");
#endif
while (cwm_status == CWM_RUNNING)
xev_process();