summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-07-18 23:28:47 +0000
committerJeremy Allison <jra@samba.org>2002-07-18 23:28:47 +0000
commit07716f3a2316fedfe9a3210fd1dad8f7d1e4d9c8 (patch)
tree0bddd0fb1935a9183bd9a010692f9f36c13de50a
parentae924493754220b8ad9e9767eb25f0f53a23327d (diff)
downloadsamba-07716f3a2316fedfe9a3210fd1dad8f7d1e4d9c8.tar.gz
samba-07716f3a2316fedfe9a3210fd1dad8f7d1e4d9c8.tar.xz
samba-07716f3a2316fedfe9a3210fd1dad8f7d1e4d9c8.zip
Add useful VALGRIND #ifdef.
Jeremy.
-rw-r--r--source/lib/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index be108aa4056..51c926dd0b8 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -505,6 +505,7 @@ close the low 3 fd's and open dev/null in their place
********************************************************************/
void close_low_fds(void)
{
+#ifndef VALGRIND
int fd;
int i;
close(0); close(1);
@@ -525,6 +526,7 @@ void close_low_fds(void)
return;
}
}
+#endif
}
/****************************************************************************