You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed. It looks like the actual dup3 syscall was removed in 9e93533 . But I would go further than you suggest. Our usual convention in Nix is to not even attempt to emulate nonexistent syscalls. Of course, we don't want to remove things that people may be using. See pipe2 in src/unistd.rs. Would you be willing to try fixing this?
nix/src/unistd.rs
Lines 381 to 397 in 70cce1a
This means that using it in multithreaded applications results in races even on platforms where a proper
dup3
is supported.I think it would be best if it used
dup3
if it is available and only falls back todup2
ifdup3
is not available.The text was updated successfully, but these errors were encountered: