summary refs log tree commit diff
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan <okan>2015-11-12 17:56:54 +0000
committerokan <okan>2015-11-12 17:56:54 +0000
commita2c066e447f8c3f754cc5559066b09f80e4c148e (patch)
treeea2af58d41dd3e7cac506accce1a5f3c102316f9 /calmwm.c
parent00bdd48b1d93b91946c7655ec8829060040aec22 (diff)
downloadcwm-a2c066e447f8c3f754cc5559066b09f80e4c148e.tar.gz
cwm-a2c066e447f8c3f754cc5559066b09f80e4c148e.tar.xz
cwm-a2c066e447f8c3f754cc5559066b09f80e4c148e.zip
pledge "stdio rpath proc exec" cwm before main event loop, after
init/setup - mostly for menu building.

ok semarie@ (another cwm user)
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calmwm.c b/calmwm.c
index a17f0f4..9166485 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -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();