mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
sigsuspend: proper behaviour
This commit is contained in:
@@ -59,8 +59,10 @@ typedef struct thread_t {
|
||||
stack_t stack;
|
||||
sigset_t mask;
|
||||
sigset_t pending;
|
||||
sigset_t urgent;
|
||||
sigset_t waiting;
|
||||
sigset_t urgent; // always handled before returning to userspace
|
||||
sigset_t waiting; // for signal_wait
|
||||
sigset_t oldmask; // for signal_suspend
|
||||
bool suspending;
|
||||
bool stopped;
|
||||
} signals;
|
||||
} thread_t;
|
||||
|
||||
@@ -158,6 +158,7 @@ void signal_changemask(struct thread_t *thread, int how, sigset_t *new, sigset_t
|
||||
void signal_signalproc(struct proc_t *proc, int signal);
|
||||
void signal_signalthread(struct thread_t *thread, int signal, bool urgent);
|
||||
void signal_pending(struct thread_t *, sigset_t *sigset);
|
||||
void signal_suspend(sigset_t *sigset);
|
||||
int signal_wait(sigset_t *sigset, timespec_t *timeout, siginfo_t *siginfo, int *signum);
|
||||
bool signal_check(struct thread_t *thread, context_t *context, bool syscall, uint64_t syscallret, uint64_t syscallerrno);
|
||||
extern int signal_defaultactions[NSIG];
|
||||
|
||||
Reference in New Issue
Block a user