0b44a031
400c5e5c ^
a7dbcf5c ^
1
2
3
4 5
6
7 8 9 10
#include <signal.h> int sigwait(const sigset_t *restrict mask, int *restrict sig) { siginfo_t si; if (sigtimedwait(mask, &si, 0) < 0) return -1; *sig = si.si_signo; return 0; }