mirror of https://github.com/godotengine/godot.git
Disable file descriptor sharing with subprocs.
On Unix systems, file descriptors are usually shared among child processes. This means, that if we spawn a subprocess (or we fork) like we do in the editor any open file descriptor will leak to the new process. This PR sets the close-on-exec flag when opening a file, which causes the file descriptor to not be shared with the child process.pull/32617/head
parent
bd7b2354c5
commit
ad9a5ee6f1
Loading…
Reference in New Issue