1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

sleep: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-27 21:39:35 +01:00
parent 8f6dc3e9a0
commit a7b984ec49

View file

@ -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;