summaryrefslogtreecommitdiffstats
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
commit1c6322473afcf9065fa25777d1b0627f133af3f6 (patch)
treeee08a024c993cecfacb2643b924c70df96af1c9e
parent9416b58b9c2ff898cdae2cb81ab1e150ef9f0e89 (diff)
downloadsamba-1c6322473afcf9065fa25777d1b0627f133af3f6.tar.gz
samba-1c6322473afcf9065fa25777d1b0627f133af3f6.tar.xz
samba-1c6322473afcf9065fa25777d1b0627f133af3f6.zip
if using insure then don't close fd 2
-rw-r--r--source/lib/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index ccdfc72bbdd..c27e96beea4 100644
--- a/source/lib/util.c
+++ b/source/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++) {