summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-23 07:37:43 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-23 07:37:43 +0000
commitf930ec638bfe9fba722275ec4eb1c359520ddc8f (patch)
tree07e338a73378a62b77fc55603609f8750b1b87f2 /source3/lib
parentf1867dcad621ff4280c2710d3941383f382b9529 (diff)
downloadsamba-f930ec638bfe9fba722275ec4eb1c359520ddc8f.tar.gz
samba-f930ec638bfe9fba722275ec4eb1c359520ddc8f.tar.bz2
samba-f930ec638bfe9fba722275ec4eb1c359520ddc8f.zip
if using insure then don't close fd 2
(This used to be commit 1c6322473afcf9065fa25777d1b0627f133af3f6)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index ccdfc72bbd..c27e96beea 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -666,7 +666,10 @@ void close_low_fds(void)
{
int fd;
int i;
- close(0); close(1); close(2);
+ close(0); close(1);
+#ifndef __INSURE__
+ close(2);
+#endif
/* try and use up these file descriptors, so silly
library routines writing to stdout etc won't cause havoc */
for (i=0;i<3;i++) {