~brown121407/dwm

f40f86fa873bc4acccdf3d929aa0f786993ae31d — Klemens Nanni 3 years ago c3a2e01
Pledge on OpenBSD
1 files changed, 4 insertions(+), 0 deletions(-)

M dwm.c
M dwm.c => dwm.c +4 -0
@@ 2137,6 2137,10 @@ main(int argc, char *argv[])
		die("dwm: cannot open display");
	checkotherwm();
	setup();
#ifdef __OpenBSD__
	if (pledge("stdio proc exec", NULL) == -1)
		die("pledge");
#endif /* __OpenBSD__ */
	scan();
	run();
	cleanup();