diff options
author | Wynn Wolf Arbor | 2020-06-11 19:00:46 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-04-27 12:28:22 +0200 |
commit | 6f52101dc14d14414affb07b537619e4609daf6b (patch) | |
tree | ebaa895e689a506955d432bd455275fbeb5d9568 /calmwm.c | |
parent | f228cc8ae58fa45e185817e4eae7e920e30cfeaf (diff) | |
download | cwm-6f52101dc14d14414affb07b537619e4609daf6b.tar.gz |
Use pledge(3) only on OpenBSD
Diffstat (limited to 'calmwm.c')
-rw-r--r-- | calmwm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |