mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +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.
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