From 964e809ce2069ad888e0fb12dfe51bac5a461508 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 26 Aug 2011 11:38:21 +0200 Subject: s3: Use sys_read in fork_domain_child I've seen [2011/08/26 01:44:10.872057, 1] winbindd/winbindd_dual.c:1336(fork_domain_child) fork_domain_child: Could not read child status: nread=-1, error=Interrupted system call on a customer box. Not good. --- source3/winbindd/winbindd_dual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index 5bf90b1222..47de902a5f 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -1329,7 +1329,7 @@ static bool fork_domain_child(struct winbindd_child *child) close(fdpair[0]); - nread = read(fdpair[1], &status, sizeof(status)); + nread = sys_read(fdpair[1], &status, sizeof(status)); if (nread != sizeof(status)) { DEBUG(1, ("fork_domain_child: Could not read child status: " "nread=%d, error=%s\n", (int)nread, -- cgit