X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fautomount.c;h=262a47da4efe5fdc79b5579b37f5a78968a0d9da;hb=d0b170c8133d0c155b18aabef919693dcba406dd;hp=3d85605fb4f46a7cd7f110b278716bd99deb31d0;hpb=18c78fb1af5415bb6f87d9c7cae1f9c60e14ae24;p=elogind.git diff --git a/src/automount.c b/src/automount.c index 3d85605fb..262a47da4 100644 --- a/src/automount.c +++ b/src/automount.c @@ -708,7 +708,7 @@ static void automount_fd_event(Unit *u, int fd, uint32_t events, Watch *w) { goto fail; } - if ((l = loop_read(a->pipe_fd, &packet, sizeof(packet))) != sizeof(packet)) { + if ((l = loop_read(a->pipe_fd, &packet, sizeof(packet), true)) != sizeof(packet)) { log_error("Invalid read from pipe: %s", l < 0 ? strerror(-l) : "short read"); goto fail; }