X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fpipecmd%2Fpipecmd.c;h=32772a83bc7b69c96cff57747aa779771f2e7604;hp=22903bb34627b0df674f7c14b78dfe7a7907bb74;hb=6b74669644e8476dee9845b6ff8096cbfb557e27;hpb=dfafd0a1f522277c9be5fc589885db38f706d108 diff --git a/ccan/pipecmd/pipecmd.c b/ccan/pipecmd/pipecmd.c index 22903bb3..32772a83 100644 --- a/ccan/pipecmd/pipecmd.c +++ b/ccan/pipecmd/pipecmd.c @@ -123,8 +123,9 @@ pid_t pipecmdarr(int *fd_fromchild, int *fd_tochild, int *fd_errfromchild, child_errno_fail: err = errno; /* Gcc's warn-unused-result fail. */ - if (write(execfail[1], &err, sizeof(err))) + if (write(execfail[1], &err, sizeof(err))) { ; + } exit(127); }