summaryrefslogtreecommitdiff
path: root/source3
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
commit7f98456fb3002623773b84c9a785ff6b3bc03b2f (patch)
tree9eeb25de2c8829d6fa86f1d8dc5e582384ec699c /source3
parent958b0e35281647e32f8006d73ea67a238df80951 (diff)
downloadsamba-7f98456fb3002623773b84c9a785ff6b3bc03b2f.tar.gz
samba-7f98456fb3002623773b84c9a785ff6b3bc03b2f.tar.bz2
samba-7f98456fb3002623773b84c9a785ff6b3bc03b2f.zip
Add useful VALGRIND #ifdef.
Jeremy. (This used to be commit 07716f3a2316fedfe9a3210fd1dad8f7d1e4d9c8)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index be108aa405..51c926dd0b 100644
--- a/source3/lib/util.c
+++ b/source3/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
}
/****************************************************************************