From 6589e028072d6777bf64863fa50f663c792eb600 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 15 Mar 2012 13:24:57 -0700 Subject: [PATCH] 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 --- source3/lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT