runtime: golang Automatically Closed fd 1 and fd 2 #58424
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not tried.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
my code is like:
What did you expect to see?
stdout fd will never be closed. And the child process can use it to print log.
What did you see instead?
I found the program automatically closed stdout (fd 1) after a long time(like one day), which can't be seen in
/proc/${pid}/fd
.And this makes the child process missing stdout, and can't print anything.
The text was updated successfully, but these errors were encountered: