std: Handle ENOSYS when calling pipe2#42521
Conversation
|
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
|
Nominating for a beta backport as this is technically a regression from 1.17.0 |
src/libstd/sys/unix/pipe.rs
Outdated
There was a problem hiding this comment.
Can we not just copy the info here? I.e. "...may still get ENOSYS if the kernel is too old for pipe2 as glibc unconditionally defines the pipe2 symbol as a thin syscall wrapper."
|
This undoes what #39386 tried to do: You can save the |
|
Ah, that was before the advice to ignore |
Should help fix an accidental regression from rust-lang#39386.
|
@bors: r=cuviper |
|
📌 Commit 44e6406 has been approved by |
std: Handle ENOSYS when calling `pipe2` Should help fix an accidental regression from rust-lang#39386.
std: Handle ENOSYS when calling `pipe2` Should help fix an accidental regression from #39386.
|
☀️ Test successful - status-appveyor, status-travis |
Just because libc has the symbol, doesn't mean the kernel supports it. Based on rust-lang/rust#42521.
Should help fix an accidental regression from #39386.