From: Saverio Proto Date: Sun, 1 Jun 2014 15:29:44 +0000 (+0200) Subject: fix signal_trigger X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=360bd1c4611885942d4a73d10ba9c68848a6a525;p=meshlink fix signal_trigger --- 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; }