Only pledge on OpenBSD

This commit is contained in:
Vadim Vygonets 2015-11-16 11:41:15 +01:00
parent 3d7df63f05
commit 8fdb7d486c

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();