From 497febfe36354c4aff3696cd32c6c7e8fee55af8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 23 Jan 2013 14:39:09 -0800 Subject: [PATCH] Fix bug #9586 - smbd[29175]: disk_free: sys_popen() failed" message logged in /var/log/message many times. Ensure when reading lines from an interruptible pipe source we ignore EINTR. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Thu Jan 24 10:45:48 CET 2013 on sn-devel-104 --- source3/lib/util_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c index 50ff8447624..8319f04a093 100644 --- a/source3/lib/util_file.c +++ b/source3/lib/util_file.c @@ -38,7 +38,7 @@ static char *file_pload(const char *syscmd, size_t *size) p = NULL; total = 0; - while ((n = read(fd, buf, sizeof(buf))) > 0) { + while ((n = sys_read(fd, buf, sizeof(buf))) > 0) { p = talloc_realloc(NULL, p, char, total + n + 1); if (!p) { DEBUG(0,("file_pload: failed to expand buffer!\n")); -- 2.11.4.GIT