swallow: upgrading to latest version with OpenBSD support

This commit is contained in:
bakkeby
2020-09-11 17:21:38 +02:00
parent 4a35cd2704
commit dc9e57a6b6
2 changed files with 39 additions and 8 deletions

4
dwm.c
View File

@ -4394,7 +4394,11 @@ main(int argc, char *argv[])
#endif // COOL_AUTOSTART_PATCH
setup();
#ifdef __OpenBSD__
#if SWALLOW_PATCH
if (pledge("stdio rpath proc exec ps", NULL) == -1)
#else
if (pledge("stdio rpath proc exec", NULL) == -1)
#endif // SWALLOW_PATCH
die("pledge");
#endif /* __OpenBSD__ */
scan();