X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdaemon.c;h=173dabe6f5c172e257c9d080cbbe4a0e96039b42;hb=8fb32694154c620dce9ff0379a744178f73c1c89;hp=64e2f9e9ab769229719f82057c84299952ef9e56;hpb=a328a943f173391cd9a9a54e257c8dabcd463402;p=sliver-openvswitch.git diff --git a/lib/daemon.c b/lib/daemon.c index 64e2f9e9a..173dabe6f 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -244,11 +244,12 @@ fork_and_wait_for_startup(int *fdp) pid = fork(); if (pid > 0) { /* Running in parent process. */ + size_t bytes_read; char c; close(fds[1]); fatal_signal_fork(); - if (read(fds[0], &c, 1) != 1) { + if (read_fully(fds[0], &c, 1, &bytes_read) != 0) { int retval; int status;