Changes of Revision 4
[-] [+] | Added | collectd-fix-ignore-return-value.patch |
@@ -0,0 +1,13 @@ +--- src/multimeter.c.orig 2007-02-10 22:48:00.000000000 +0100 ++++ src/multimeter.c 2007-02-10 22:48:46.000000000 +0100 +@@ -90,8 +90,10 @@ + struct timeval timeout; + struct timeval time_now; + +- write(fd, "D", 1); ++ if (write(fd, "D", 1) == -1) { ++ perror("unable to write D on file descriptor: "); ++ } + + FD_ZERO(&rfds); + FD_SET(fd, &rfds); |