Make reinit_after_fork_pipe_handler code with reads being interrupted by a signal.
authorJeremy Allison <jra@samba.org>
Thu, 15 Mar 2012 20:24:57 +0000 (13:24 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 15 Mar 2012 22:29:47 +0000 (23:29 +0100)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 15 23:29:47 CET 2012 on sn-devel-104

source3/lib/util.c

index fa2cc9fd83de57c0cbb110aceb1f45d31503bca5..81d476b1da8c73cfd679a06177e2551ca24e5f70 100644 (file)
@@ -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