Skip to content

Commit 402b13c

Browse files
task: signal the parent SIGCHLD when child dies (checkmate)
Signed-off-by: Andy-Python-Programmer <[email protected]>
1 parent 5fb8b6a commit 402b13c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

patches/mlibc/mlibc.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 4b435231bee99fa0da6f9498c5342488e02a7bbd Mon Sep 17 00:00:00 2001
1+
From c7e816f64f5dc357cfd6399413ac38098de6234a Mon Sep 17 00:00:00 2001
22
From: Andy-Python-Programmer <[email protected]>
33
Date: Thu, 10 Feb 2022 19:12:25 +1100
44
Subject: [PATCH] yes

src/aero_kernel/src/userland/task.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,9 @@ impl Task {
516516
parent.remove_child(self);
517517
parent.zombies.add_zombie(self.this());
518518

519-
// TODO: If the parent process is the process leader then
520-
// signal SIGCHLD to the parent process.
519+
if self.is_process_leader() {
520+
parent.signal(aero_syscall::signal::SIGCHLD);
521+
}
521522
}
522523
}
523524
}

0 commit comments

Comments
 (0)