perhaps fix memory corruption due to libx264 writing to stderr which may be closed.

This commit is contained in:
Isaac Connor
2018-09-27 13:50:11 -04:00
parent 49a7614504
commit 66f11435b9

View File

@@ -482,7 +482,7 @@ sub start {
logTerm();
zmDbDisconnect();
my $fd = 0;
my $fd = 3; # leave stdin,stdout,stderr open. Closing them causes problems with libx264
while( $fd < POSIX::sysconf(&POSIX::_SC_OPEN_MAX) ) {
POSIX::close($fd++);
}