mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Kernel: Send SIGSEGV on seg-fault
Now programs can catch the SIGSEGV signal when they segfault. This commit also introduced the send_urgent_signal_to_self method, which is needed to send signals to a thread when handling exceptions caused by the same thread.
This commit is contained in:
parent
7fc903b97a
commit
c136fd3fe2
3 changed files with 31 additions and 0 deletions
|
@ -273,6 +273,7 @@ public:
|
|||
void set_selector(u16 s) { m_far_ptr.selector = s; }
|
||||
void set_state(State);
|
||||
|
||||
void send_urgent_signal_to_self(u8 signal);
|
||||
void send_signal(u8 signal, Process* sender);
|
||||
void consider_unblock(time_t now_sec, long now_usec);
|
||||
|
||||
|
@ -283,6 +284,7 @@ public:
|
|||
bool has_unmasked_pending_signals() const;
|
||||
void terminate_due_to_signal(u8 signal);
|
||||
bool should_ignore_signal(u8 signal) const;
|
||||
bool has_signal_handler(u8 signal) const;
|
||||
|
||||
FPUState& fpu_state() { return *m_fpu_state; }
|
||||
bool has_used_fpu() const { return m_has_used_fpu; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue