summaryrefslogtreecommitdiff
path: root/src/udev/udevadm-settle.c
diff options
context:
space:
mode:
authorblueness <basile@opensource.dyc.edu>2014-03-22 16:51:07 -0400
committerblueness <basile@opensource.dyc.edu>2014-03-22 16:51:07 -0400
commitfbfcfb49a6f2bfa61e235f5fe601fa9a9f95b4ea (patch)
tree41068dda4890be00135e260e30620400997cb662 /src/udev/udevadm-settle.c
parent12c87cef17934b0909b96fdaa18b178963ec4436 (diff)
parent728baddb472075e21421ebdc5de0a6e992453fbc (diff)
Merge pull request #90 from lhb-jr/fix_nocheckreturn
Fixed gcc warnings that call returns not checked Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevadm-settle.c')
-rw-r--r--src/udev/udevadm-settle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/udev/udevadm-settle.c b/src/udev/udevadm-settle.c
index 9eeeab8f14..9ae6c6bf8e 100644
--- a/src/udev/udevadm-settle.c
+++ b/src/udev/udevadm-settle.c
@@ -201,7 +201,10 @@ static int adm_settle(struct udev *udev, int argc, char *argv[])
if (poll(pfd, 1, delay) > 0 && pfd[0].revents & POLLIN) {
char buf[sizeof(struct inotify_event) + PATH_MAX];
- read(pfd[0].fd, buf, sizeof(buf));
+ if(read(pfd[0].fd, buf, sizeof(buf)) < 0){
+ log_error("failed to read /run/udev");
+ goto out;
+ }
}
} else {
sleep(1);