From: Jeremy Allison Date: Thu, 15 Mar 2012 20:24:57 +0000 (-0700) Subject: Make reinit_after_fork_pipe_handler code with reads being interrupted by a signal. X-Git-Tag: tdb-1.2.10~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6589e028072d6777bf64863fa50f663c792eb600;p=thirdparty%2Fsamba.git Make reinit_after_fork_pipe_handler code with reads being interrupted by a signal. Autobuild-User: Jeremy Allison Autobuild-Date: Thu Mar 15 23:29:47 CET 2012 on sn-devel-104 --- diff --git a/source3/lib/util.c b/source3/lib/util.c index fa2cc9fd83d..81d476b1da8 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -387,7 +387,7 @@ static void reinit_after_fork_pipe_handler(struct tevent_context *ev, { char c; - if (read(reinit_after_fork_pipe[0], &c, 1) != 1) { + if (sys_read(reinit_after_fork_pipe[0], &c, 1) != 1) { /* * we have reached EOF on stdin, which means the * parent has exited. Shutdown the server