mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
Kernel: Stop sending SIGCHLD to kernel parent processes
Kernel processes cannot handle signals.
This commit is contained in:
parent
5a770f2eff
commit
2c996cbbee
Notes:
sideshowbarker
2024-07-17 18:25:26 +09:00
Author: https://github.com/IdanHo
Commit: 2c996cbbee
Pull-request: https://github.com/SerenityOS/serenity/pull/12704
Issue: https://github.com/SerenityOS/serenity/issues/9837
1 changed files with 1 additions and 1 deletions
|
@ -606,7 +606,7 @@ void Process::finalize()
|
|||
{
|
||||
// FIXME: PID/TID BUG
|
||||
if (auto parent_thread = Thread::from_tid(ppid().value())) {
|
||||
if ((parent_thread->m_signal_action_data[SIGCHLD].flags & SA_NOCLDWAIT) != SA_NOCLDWAIT)
|
||||
if (parent_thread->process().is_user_process() && (parent_thread->m_signal_action_data[SIGCHLD].flags & SA_NOCLDWAIT) != SA_NOCLDWAIT)
|
||||
parent_thread->send_signal(SIGCHLD, this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue