mirror of
https://github.com/samba-team/samba.git
synced 2025-12-14 20:23:54 +03:00
if using insure then don't close fd 2
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user