diff options
author | okan | 2015-11-12 17:56:54 +0000 |
---|---|---|
committer | okan | 2015-11-12 17:56:54 +0000 |
commit | ea9b9d8cd8863bb57a4413454173571925a00474 (patch) | |
tree | 98e657f2cd17bf5b786c2d009c17a94c2de2c631 /calmwm.c | |
parent | f6f5e0fe9eb0a0ce66ee5d0720182bfadf2cf800 (diff) | |
download | cwm-ea9b9d8cd8863bb57a4413454173571925a00474.tar.gz |
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.c,v 1.95 2015/11/10 20:05:33 okan Exp $ + * $OpenBSD: calmwm.c,v 1.96 2015/11/12 17:56:54 okan Exp $ */ #include <sys/types.h> @@ -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(); |