~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sel/sig.c: Use `DISCARD' to ignore errors from the signal-pipe `write'.
[mLib]
/
sel
/
sig.c
diff --git
a/sel/sig.c
b/sel/sig.c
index
a1dc352
..
0160bf1
100644
(file)
--- a/
sel/sig.c
+++ b/
sel/sig.c
@@
-37,6
+37,7
@@
#include "alloc.h"
#include "fdflags.h"
#include "alloc.h"
#include "fdflags.h"
+#include "macros.h"
#include "report.h"
#include "sel.h"
#include "sig.h"
#include "report.h"
#include "sel.h"
#include "sig.h"
@@
-72,12
+73,11
@@
static unsigned nsig;
static void sig_handler(int n)
{
static void sig_handler(int n)
{
- int hunoz;
int e = errno;
unsigned char sch = (unsigned char)n;
sigprocmask(SIG_BLOCK, &ss_all, 0);
sigaddset(&ss_caught, n);
int e = errno;
unsigned char sch = (unsigned char)n;
sigprocmask(SIG_BLOCK, &ss_all, 0);
sigaddset(&ss_caught, n);
-
hunoz = write(sigfd, &sch, 1
);
+
DISCARD(write(sigfd, &sch, 1)
);
/* The system should reset the signal mask here. */
errno = e;
}
/* The system should reset the signal mask here. */
errno = e;
}