diff options
author | joerg <joerg@pkgsrc.org> | 2017-02-25 21:21:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2017-02-25 21:21:53 +0000 |
commit | b6f42ce3049615a953678502ba5b82bef4c1d503 (patch) | |
tree | 68a5bc2b9e258673346e3922eb89e3e90767a928 /pkgtools | |
parent | fedb715669d5c1ad39f9607db3716cd5125ca1d9 (diff) | |
download | pkgsrc-b6f42ce3049615a953678502ba5b82bef4c1d503.tar.gz |
Deal with stupid GCC warnings on Linux due to glibc deciding that
write's return value must be used at all times.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pbulk/files/pbulk/lib/event.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/lib/event.c b/pkgtools/pbulk/files/pbulk/lib/event.c index 278800abd09..32e563828f8 100644 --- a/pkgtools/pbulk/files/pbulk/lib/event.c +++ b/pkgtools/pbulk/files/pbulk/lib/event.c @@ -1,4 +1,4 @@ -/* $NetBSD: event.c,v 1.7 2015/09/08 13:57:36 joerg Exp $ */ +/* $NetBSD: event.c,v 1.8 2017/02/25 21:21:53 joerg Exp $ */ /*- * Copyright (c) 2007, 2009 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -269,7 +269,8 @@ signal_handler(int sig_id) } old_errno = errno; - write(signal_pipe[1], &buf, 1); + if (write(signal_pipe[1], &buf, 1)) { + } errno = old_errno; } |