1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 20:07:35 +00:00

Kernel: Ignore SIGCHLD by default.

Also use an enum for the rather-confusing return value in dispatch_signal().
I will go through the rest of the signals and set them up with the
appropriate default dispositions at some other point.
This commit is contained in:
Andreas Kling 2019-02-04 14:06:38 +01:00
parent ba6ffea03c
commit d7307c3119
4 changed files with 30 additions and 11 deletions

View file

@ -73,6 +73,9 @@ static GWindow* make_clock_window();
void handle_sigchld(int)
{
dbgprintf("Got SIGCHLD\n");
int pid = waitpid(-1, nullptr, 0);
dbgprintf("waitpid() returned %d\n", pid);
ASSERT(pid > 0);
}
int main(int argc, char** argv)