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

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