SITL: close high fds before launching JSBSIM

This commit is contained in:
Andrew Tridgell 2015-05-11 08:06:10 +10:00
parent 414f4125de
commit bab94c8a04

View File

@ -178,6 +178,9 @@ bool JSBSim::start_JSBSim(void)
dup2(devnull, 0);
dup2(p[1], 1);
close(p[0]);
for (uint8_t i=3; i<100; i++) {
close(i);
}
char *logdirective;
char *script;