summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2017-02-25 21:21:53 +0000
committerjoerg <joerg@pkgsrc.org>2017-02-25 21:21:53 +0000
commitb6f42ce3049615a953678502ba5b82bef4c1d503 (patch)
tree68a5bc2b9e258673346e3922eb89e3e90767a928 /pkgtools
parentfedb715669d5c1ad39f9607db3716cd5125ca1d9 (diff)
downloadpkgsrc-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.c5
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;
}