Commit Diff
- Commit:
251e00ff6d49ac88dee01a6bde35f26ac1680d3a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- pledge audio too while for my particular use-case this has always worked with only "stdio recvfd", sio_open(3) mentions that if no further sio_open calls are made all pledges can be dropped except for "audio", so let's keep it.
- Actions:
- Patch | Tree
--- player.c +++ player.c @@ -296,7 +296,7 @@ player(int debug, int verbose) signal(SIGHUP, SIG_IGN); signal(SIGPIPE, SIG_IGN); - if (pledge("stdio recvfd", NULL) == -1) + if (pledge("stdio recvfd audio", NULL) == -1) fatal("pledge"); while (!halted) {