mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
frontend: do not clone frontend filedescriptors on fork()/system() ie. this fixes that the frontend cannot be opened under the condition that some of the before mentioned calls are still active and then holding the filedescriptors open.
Origin commit data
------------------
Branch: ni/coolstream
Commit: f1fbe7fffe
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2012-05-14 (Mon, 14 May 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -210,7 +210,7 @@ bool CFrontend::Open(void)
|
||||
printf("[fe%d] open %s\n", fenumber, filename);
|
||||
|
||||
if (fd < 0) {
|
||||
if ((fd = open(filename, O_RDWR | O_NONBLOCK)) < 0) {
|
||||
if ((fd = open(filename, O_RDWR | O_NONBLOCK | O_CLOEXEC)) < 0) {
|
||||
ERROR(filename);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user