Indicate how ChildStd{in,out,err} FDs are closed.#44625
Indicate how ChildStd{in,out,err} FDs are closed.#44625bors merged 4 commits intorust-lang:masterfrom
Conversation
src/libstd/process.rs
Outdated
There was a problem hiding this comment.
'underlying operating system file descriptor' is a mouthful. very open to other terminology here.
There was a problem hiding this comment.
"file handle", maybe? that's just trading one OS's terminology for another's
There was a problem hiding this comment.
i'm 🆒 with 'file handle'. do you think "underlying operating system file handle" or "underlying file handle" or "file handle" or something else?
There was a problem hiding this comment.
"underlying file handle" was what i had in mind
There was a problem hiding this comment.
thanks for the idea! 'underlying file handle' incorporated in the latest force push
|
i thought about throwing 'RAII" somewhere in here but could think of a good way to incorporate it |
7105f47 to
a1f9052
Compare
|
Maybe mention for |
|
@abonander maybe something about how it'll put an end-of-file at the end of whatever's already been written to it? |
src/libstd/process.rs
Outdated
|
|
||
| /// Configuration for the child process's stdin handle (file descriptor 0). | ||
| /// Configuration for the child process's standard input (stdin) handle | ||
| /// (file descriptor 0). |
There was a problem hiding this comment.
The file descriptor 0 part seems awfully platform specific.
|
@abonander I'm not too familiar with the behavior/semantics of pipes w.r.t this. Does this sound right?
|
|
Added a couple more commits. Anyone else have thoughts? |
|
Seems good to me. @abonander What do you think about the note of child processes being unblocked? |
|
I can't say whether or not it's correct for all platforms but it answers OP's question in the Reddit post that spawned #41452 so I'm happy with it. |
|
Since this seems to be all set, i'll go ahead and get this in. @bors r+ rollup |
|
📌 Commit 859ebef has been approved by |
…etMisdreavus
Indicate how ChildStd{in,out,err} FDs are closed.
Fixes rust-lang#41452.
…etMisdreavus
Indicate how ChildStd{in,out,err} FDs are closed.
Fixes rust-lang#41452.
Fixes #41452.