diff options
author | John Ankarström <john@ankarstrom.se> | 2018-09-24 23:13:29 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2018-09-24 23:13:29 +0200 |
commit | 7f3b9b2170e3f232ee3697735c19085aeb696f9e (patch) | |
tree | deeba1e5a2f148b98201c25af8888e28bf062d4a | |
parent | 0301256c7ae332979e3bca3d5a5e4010ba0b22eb (diff) | |
download | when-7f3b9b2170e3f232ee3697735c19085aeb696f9e.tar.gz |
pledge
-rw-r--r-- | watch.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -29,6 +29,11 @@ int main(int argc, char *argv[]) { fail(); } + if (pledge("stdio", NULL) == -1) { + perror("pledge"); + fail_clean(); + } + if ((kq = kqueue()) == -1) { perror("kqueue"); fail_clean(); |