Commit 7476ff0
authored
in recvmsg, pass in MSG_CMSG_CLOEXEC on illumos (#373)
Support for MSG_CMSG_CLOEXEC was added to illumos in a [recent commit]. To
match the behavior on Linux, pass in the flag on illumos (the definition was
added in libc 0.2.162).
I've verified that the ipc-channel test suite still passes on an older
illumos kernel which doesn't have support for it. This is okay because
for returned fds, cloexec support is effectively best-effort.
[recent commit]: illumos/illumos-gate@0250c531 parent aa43418 commit 7476ff0
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments