summaryrefslogtreecommitdiff
path: root/src/automount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-18 04:44:53 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-18 04:44:53 +0200
commiteb22ac37f3e07b9c49a3f8fdc8cc02631faabcb4 (patch)
tree2446c4f33cd0990c97e6088850c43ad4b266ce73 /src/automount.c
parent55293c152a0c8a8720461a26e2d6e24b5612d1f0 (diff)
systemctl: add /dev/initctl fallback
Diffstat (limited to 'src/automount.c')
-rw-r--r--src/automount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/automount.c b/src/automount.c
index 3d85605fb4..262a47da4e 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;
}