diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-10-07 11:31:20 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-10-07 11:57:44 +0200 |
commit | ad9a5ee6f1c3cb48a3f06e87a1e925a986c90ab8 (patch) | |
tree | e1fd6b287c153b023644042040d3d7d78d749790 /modules/mobile_vr | |
parent | bd7b2354c5384527ed73b5d13cee61d85f38fec6 (diff) |
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.
Diffstat (limited to 'modules/mobile_vr')
0 files changed, 0 insertions, 0 deletions