1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +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

@ -451,6 +451,7 @@ public:
ErrorOr<void> send_signal(u8 signal, Process* sender);
u8 termination_signal() const { return m_protected_values.termination_signal; }
u8 termination_status() const { return m_protected_values.termination_status; }
u16 thread_count() const
{