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:
[CST] Bas
2012-05-14 23:53:46 +08:00
parent c972265dbb
commit 89af855f0d

View File

@@ -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;
}