Add support for sigqueue() and also handle SIGUSR2

I anticipate using sigqueue() for simpler handling of SIGCHLD
notifications from the prewram process to the its parent.
This commit is contained in:
Kovid Goyal
2022-06-04 14:09:23 +05:30
parent ce3322bf91
commit bf4dc6365a
4 changed files with 57 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ typedef struct {
int wakeup_read_fd;
int signal_read_fd;
} LoopData;
typedef void(*handle_signal_func)(int, void *data);
typedef void(*handle_signal_func)(int32_t, int32_t, void *data);
bool init_loop_data(LoopData *ld);
void free_loop_data(LoopData *ld);