chiark
/
gitweb
/
~mdw
/
mLib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8082dd2
)
sel/sig.c: Discard return value without provoking other warnings.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 20 Oct 2012 11:58:56 +0000
(12:58 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 20 Oct 2012 11:58:56 +0000
(12:58 +0100)
sel/sig.c
patch
|
blob
|
blame
|
history
diff --git
a/sel/sig.c
b/sel/sig.c
index a1dc352c728c56ab21d8369f2efb1f47a420da69..bc55912d75657b913707c08e2ffdf5368ee8cded 100644
(file)
--- a/
sel/sig.c
+++ b/
sel/sig.c
@@
-72,12
+72,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)
;
+
if (write(sigfd, &sch, 1)) /*hunoz*/
;
/* The system should reset the signal mask here. */
errno = e;
}
/* The system should reset the signal mask here. */
errno = e;
}