mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Kernel: Copy signal handlers when forking
This commit is contained in:
parent
add4dd3589
commit
67f352b824
Notes:
sideshowbarker
2024-07-17 09:41:51 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/67f352b824 Pull-request: https://github.com/SerenityOS/serenity/pull/14447 Reviewed-by: https://github.com/IdanHo ✅ Reviewed-by: https://github.com/alimpfard ✅ Reviewed-by: https://github.com/bgianfo
@ -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…
Reference in New Issue
Block a user