aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-06-11 19:00:46 +0200
committerWolfgang Müller2021-04-27 12:28:22 +0200
commit6f52101dc14d14414affb07b537619e4609daf6b (patch)
treeebaa895e689a506955d432bd455275fbeb5d9568 /calmwm.c
parentf228cc8ae58fa45e185817e4eae7e920e30cfeaf (diff)
downloadcwm-6f52101dc14d14414affb07b537619e4609daf6b.tar.gz
Use pledge(3) only on OpenBSD
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calmwm.c b/calmwm.c
index 901c6ff..64adb8c 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -110,8 +110,10 @@ main(int argc, char **argv)
xfd = x_init(display_name);
cwm_status = CWM_RUNNING;
+#ifdef __OpenBSD__
if (pledge("stdio rpath proc exec", NULL) == -1)
err(1, "pledge");
+#endif
memset(&pfd, 0, sizeof(pfd));
pfd[0].fd = xfd;