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

Kernel: Process should send SIGCHLD to its parent when it dies.

This commit is contained in:
Andreas Kling 2019-02-04 13:30:03 +01:00
parent 7fe600f250
commit ba6ffea03c
2 changed files with 13 additions and 0 deletions

View file

@ -2172,6 +2172,11 @@ void Process::die()
m_fds.clear();
m_tty = nullptr;
destroy_all_windows();
InterruptDisabler disabler;
if (auto* parent_process = Process::from_pid(m_ppid)) {
parent_process->send_signal(SIGCHLD, this);
}
}
size_t Process::amount_virtual() const