mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-08 21:25:32 +02:00
Make the full signal info available in our signal handler
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "data-types.h"
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef __has_include
|
||||
#if __has_include(<sys/signalfd.h>)
|
||||
@@ -37,7 +38,7 @@ typedef struct {
|
||||
int wakeup_read_fd;
|
||||
int signal_read_fd;
|
||||
} LoopData;
|
||||
typedef void(*handle_signal_func)(int32_t, int32_t, void *data);
|
||||
typedef void(*handle_signal_func)(const siginfo_t* siginfo, void *data);
|
||||
|
||||
bool init_loop_data(LoopData *ld);
|
||||
void free_loop_data(LoopData *ld);
|
||||
|
||||
Reference in New Issue
Block a user