X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/76809a6419fbe44da0f3e2a7fd7efaa3f733e6f7..b05d98573ee8cd415fdb77709971960665b3e431:/sel/sig.c diff --git a/sel/sig.c b/sel/sig.c index bc55912..0160bf1 100644 --- a/sel/sig.c +++ b/sel/sig.c @@ -37,6 +37,7 @@ #include "alloc.h" #include "fdflags.h" +#include "macros.h" #include "report.h" #include "sel.h" #include "sig.h" @@ -76,7 +77,7 @@ static void sig_handler(int n) unsigned char sch = (unsigned char)n; sigprocmask(SIG_BLOCK, &ss_all, 0); sigaddset(&ss_caught, n); - if (write(sigfd, &sch, 1)) /*hunoz*/; + DISCARD(write(sigfd, &sch, 1)); /* The system should reset the signal mask here. */ errno = e; }