]> git.meshlink.io Git - meshlink/commitdiff
fix signal_trigger
authorSaverio Proto <zioproto@gmail.com>
Sun, 1 Jun 2014 15:29:44 +0000 (17:29 +0200)
committerSaverio Proto <zioproto@gmail.com>
Sun, 1 Jun 2014 15:29:44 +0000 (17:29 +0200)
src/event.c

index b9ccf741c19de3a510dc7a340dc6aadac85d5975..f851518468c7e8b6932912dc06ab0775f92ab5ca 100644 (file)
@@ -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;
 
 }