mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Kernel: Stop sending SIGCHLD to kernel parent processes
Kernel processes cannot handle signals.
This commit is contained in:
committed by
Andreas Kling
parent
5a770f2eff
commit
2c996cbbee
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user