mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-04-09 00:21:39 -04:00
perhaps fix memory corruption due to libx264 writing to stderr which may be closed.
This commit is contained in:
@@ -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++);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user