summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-07-14 00:09:59 +0000
committerroot <root>2009-07-14 00:09:59 +0000
commitf3fcbd9b323e52b0a6522ec208c3e1dbabe2bf98 (patch)
tree4f9ab76b90215349996f97bd8de89bb6373ac0c5
parent9a4bdcd75ef07d4a9fee91d2dd3f9d4ac1c57580 (diff)
*** empty log message ***
-rw-r--r--Changes1
-rw-r--r--ev.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changes b/Changes
index 4e14ed5..885e0dc 100644
--- a/Changes
+++ b/Changes
@@ -20,6 +20,7 @@ TODO: EV_MINIMAL
- implement ev_loop_depth.
- do not compile in any priority code when EV_MAXPRI == EV_MINPRI.
- support EV_MINIMAL==2 for a reduced API.
+ - actually 0-initialise struct sigaction when installing signals.
3.6 Tue Apr 28 02:49:30 CEST 2009
- multiple timers becoming ready within an event loop iteration
diff --git a/ev.c b/ev.c
index 72084ad..82de10f 100644
--- a/ev.c
+++ b/ev.c
@@ -2587,7 +2587,7 @@ ev_signal_start (EV_P_ ev_signal *w)
#if _WIN32
signal (w->signum, ev_sighandler);
#else
- struct sigaction sa;
+ struct sigaction sa = { };
sa.sa_handler = ev_sighandler;
sigfillset (&sa.sa_mask);
sa.sa_flags = SA_RESTART; /* if restarting works we save one iteration */