pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/pbulk/files/pbulk/lib



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sat Feb 25 21:21:53 UTC 2017

Modified Files:
        pkgsrc/pkgtools/pbulk/files/pbulk/lib: event.c

Log Message:
Deal with stupid GCC warnings on Linux due to glibc deciding that
write's return value must be used at all times.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/pkgtools/pbulk/files/pbulk/lib/event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/pbulk/files/pbulk/lib/event.c
diff -u pkgsrc/pkgtools/pbulk/files/pbulk/lib/event.c:1.7 pkgsrc/pkgtools/pbulk/files/pbulk/lib/event.c:1.8
--- pkgsrc/pkgtools/pbulk/files/pbulk/lib/event.c:1.7   Tue Sep  8 13:57:36 2015
+++ pkgsrc/pkgtools/pbulk/files/pbulk/lib/event.c       Sat Feb 25 21:21:53 2017
@@ -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@localhost>.
@@ -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;
 }
 



Home | Main Index | Thread Index | Old Index