diff options
Diffstat (limited to 'Userland/sleep.cpp')
-rw-r--r-- | Userland/sleep.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/sleep.cpp b/Userland/sleep.cpp index c21c06b814..6cbc4465a6 100644 --- a/Userland/sleep.cpp +++ b/Userland/sleep.cpp @@ -59,10 +59,9 @@ int main(int argc, char** argv) printf("Sleep interrupted with %u seconds remaining.\n", remaining); } - if (g_interrupted) { - signal(SIGINT, SIG_DFL); + signal(SIGINT, SIG_DFL); + if (g_interrupted) raise(SIGINT); - } return 0; } |