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

Kernel: Fill some siginfo and ucontext fields on SA_SIGINFO

There's no reason to fill in any of these fields if SA_SIGINFO is not
given, as the signal handler won't be reading from them at all.
This commit is contained in:
Ali Mohammad Pur 2022-02-26 15:29:31 +03:30 committed by Andreas Kling
parent 4bd01b7fe9
commit e14e919b78
4 changed files with 69 additions and 8 deletions

View file

@ -1220,6 +1220,7 @@ private:
VirtualAddress m_thread_specific_data;
Optional<Memory::VirtualRange> m_thread_specific_range;
Array<Optional<u32>, NSIG> m_signal_action_masks;
Array<ProcessID, NSIG> m_signal_senders;
Blocker* m_blocker { nullptr };
Kernel::Mutex* m_blocking_mutex { nullptr };
u32 m_lock_requested_count { 0 };