mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
parent
00bdd48b1d
commit
a2c066e447
4
calmwm.c
4
calmwm.c
@ -113,6 +113,10 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
x_init(display_name);
|
x_init(display_name);
|
||||||
cwm_status = CWM_RUNNING;
|
cwm_status = CWM_RUNNING;
|
||||||
|
|
||||||
|
if (pledge("stdio rpath proc exec", NULL) == -1)
|
||||||
|
err(1, "pledge");
|
||||||
|
|
||||||
while (cwm_status == CWM_RUNNING)
|
while (cwm_status == CWM_RUNNING)
|
||||||
xev_process();
|
xev_process();
|
||||||
x_teardown();
|
x_teardown();
|
||||||
|
Loading…
Reference in New Issue
Block a user