From f930ec638bfe9fba722275ec4eb1c359520ddc8f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 23 Apr 2000 07:37:43 +0000 Subject: if using insure then don't close fd 2 (This used to be commit 1c6322473afcf9065fa25777d1b0627f133af3f6) --- source3/lib/util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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++) { -- cgit