Request for O_CLOFORK, akin to O_CLOEXEC.

2017-10-18 Thread Ralph Corderoy
Hi, Please keep me CC'd. A multi-threaded program's thread A wants to create a new executable file with open(O_CLOEXEC), write, close, and then fork and exec it. Meanwhile, another thread B forks before A's close, carrying a reference to the open file description with it, thus A's execve fails

Request for O_CLOFORK, akin to O_CLOEXEC.

2017-10-18 Thread Ralph Corderoy
Hi, Please keep me CC'd. A multi-threaded program's thread A wants to create a new executable file with open(O_CLOEXEC), write, close, and then fork and exec it. Meanwhile, another thread B forks before A's close, carrying a reference to the open file description with it, thus A's execve fails