From 6a6ebf05425fb19af960177085155e83f45b7c27 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Sun, 1 Jun 2014 16:42:03 +0200 Subject: [PATCH] Signal trigger trivial implemetation --- src/event.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/event.c b/src/event.c index d23f43bb..b9ccf741 100644 --- a/src/event.c +++ b/src/event.c @@ -136,6 +136,13 @@ static void pipe_init(event_loop_t *loop) { io_add(loop, &loop->signalio, signalio_handler, NULL, loop->pipefd[0], IO_READ); } +void signal_trigger(event_loop_t *loop, signal_t *sig) { + +loop->pipefd[1]=sig->signum; +return; + +} + void signal_add(event_loop_t *loop, signal_t *sig, signal_cb_t cb, void *data, uint8_t signum) { if(sig->cb) return; -- 2.39.5