From 360bd1c4611885942d4a73d10ba9c68848a6a525 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Sun, 1 Jun 2014 17:29:44 +0200 Subject: [PATCH] fix signal_trigger --- src/event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/event.c b/src/event.c index b9ccf741..f8515184 100644 --- a/src/event.c +++ b/src/event.c @@ -138,7 +138,8 @@ static void pipe_init(event_loop_t *loop) { void signal_trigger(event_loop_t *loop, signal_t *sig) { -loop->pipefd[1]=sig->signum; +uint8_t signum = sig->signum; +write(loop->pipefd[1], &signum, 1); return; } -- 2.39.5