diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 5 |
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++) { |