mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
Kernel: Copy signal handlers when forking
This commit is contained in:
parent
add4dd3589
commit
67f352b824
1 changed files with 6 additions and 0 deletions
|
@ -273,6 +273,12 @@ ErrorOr<void> Process::attach_resources(NonnullOwnPtr<Memory::AddressSpace>&& pr
|
|||
|
||||
auto weak_ptr = TRY(this->try_make_weak_ptr());
|
||||
m_procfs_traits = TRY(ProcessProcFSTraits::try_create({}, move(weak_ptr)));
|
||||
|
||||
// This is not actually explicitly verified by any official documentation,
|
||||
// but it's not listed anywhere as being cleared, and rsync expects it to work like this.
|
||||
if (fork_parent)
|
||||
m_signal_action_data = fork_parent->m_signal_action_data;
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue