mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 11:39:33 +02:00
Allow using our signal handlers in python event loops via an fd
pythons signal fd only return signal numbers not the full siginfo struct
This commit is contained in:
@@ -42,7 +42,7 @@ typedef struct {
|
||||
int handled_signals[16];
|
||||
size_t num_handled_signals;
|
||||
} LoopData;
|
||||
typedef void(*handle_signal_func)(const siginfo_t* siginfo, void *data);
|
||||
typedef bool(*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