summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-03-15 13:24:57 -0700
committerJeremy Allison <jra@samba.org>2012-03-15 23:29:47 +0100
commit6589e028072d6777bf64863fa50f663c792eb600 (patch)
tree325613d4a561b4b8a18d3c4b8890224a93ab8de8 /source3/lib/util.c
parent148ca9e05f67a0a4fb1d583f7bec53190dea91ab (diff)
downloadsamba-6589e028072d6777bf64863fa50f663c792eb600.tar.gz
samba-6589e028072d6777bf64863fa50f663c792eb600.tar.bz2
samba-6589e028072d6777bf64863fa50f663c792eb600.zip
Make reinit_after_fork_pipe_handler code with reads being interrupted by a signal.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 15 23:29:47 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index fa2cc9fd83..81d476b1da 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