Commit a3613d2
committed
BUILD: init: use the more portable FD_CLOEXEC for /dev/null
In 3.1-dev10, commit 8dd4efe ("MAJOR: mworker: move master-worker
fork in init()"), the FD associated to /dev/null was made CLOEXEC
using O_CLOEXEC. Unfortunately this is not portable on older OSes,
doesn't build on Solaris for example, and was even reported as breaking
moderately old Linux OSes for other projects. Better not use it unless
absolutely certain it will work (currently we only use it for Linux
namespaces, which are optional), and use the conventional FD_CLOEXEC
instead.
No backport is needed.1 parent f054830 commit a3613d2
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3920 | 3920 | | |
3921 | 3921 | | |
3922 | 3922 | | |
3923 | | - | |
| 3923 | + | |
3924 | 3924 | | |
3925 | 3925 | | |
3926 | 3926 | | |
3927 | 3927 | | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
3928 | 3933 | | |
3929 | 3934 | | |
3930 | 3935 | | |
| |||
0 commit comments