aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sinit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sinit.c b/sinit.c
index ce93b19..c881fe0 100644
--- a/sinit.c
+++ b/sinit.c
@@ -79,6 +79,8 @@ main(void)
n = read(sigfd, &siginfo, sizeof(siginfo));
if (n < 0)
eprintf("sinit: read:");
+ if (n != sizeof(siginfo))
+ continue;
for (i = 0; i < LEN(dispatchsig); i++)
if (dispatchsig[i].sig == siginfo.ssi_signo)
dispatchsig[i].func();