diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-27 21:39:35 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-27 21:39:35 +0100 |
commit | a7b984ec49cca9a27d9f0cc5db14c63e409f67ff (patch) | |
tree | 40edb9f477bf209d6804535556ecfb9398167f57 /Userland/sleep.cpp | |
parent | 8f6dc3e9a0e7b2746df4663444b4c38c16d4e1e4 (diff) | |
download | serenity-a7b984ec49cca9a27d9f0cc5db14c63e409f67ff.zip |
sleep: Use pledge()
Diffstat (limited to 'Userland/sleep.cpp')
-rw-r--r-- | Userland/sleep.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/sleep.cpp b/Userland/sleep.cpp index f4a133bd71..8c7b9f92f4 100644 --- a/Userland/sleep.cpp +++ b/Userland/sleep.cpp @@ -35,6 +35,11 @@ void handle_sigint(int) int main(int argc, char** argv) { + if (pledge("stdio", nullptr) < 0) { + perror("pledge"); + return 1; + } + if (argc != 2) { printf("usage: sleep <seconds>\n"); return 1; |