pledge "stdio rpath proc exec" cwm before main event loop, after

init/setup - mostly for menu building.

ok semarie@ (another cwm user)
This commit is contained in:
okan 2015-11-12 17:56:54 +00:00
parent 00bdd48b1d
commit a2c066e447

View File

@ -113,6 +113,10 @@ main(int argc, char **argv)
x_init(display_name);
cwm_status = CWM_RUNNING;
if (pledge("stdio rpath proc exec", NULL) == -1)
err(1, "pledge");
while (cwm_status == CWM_RUNNING)
xev_process();
x_teardown();