-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os: Windows: reading data from stdin hangs in 1.9 #22207
Comments
https://github.com/Microsoft/go-winio In the final paragraph of the Readme.md file is a citation to another Go named pipe implementation. |
The issue seems to be converging on how Go (and perhaps the new poller) interacts with named pipes. Cygwin uses named pipes as a conduit for data that would flow through anonymous pipes between two processes under certain conditions mentioned in #22024 |
@forskning The difference is that Microsoft package seems to support additional functionality. On Windows, named pipes can transfer data in In lieu of a short reproducible snippet, Are you able to share any information on how the pipe is created using that package? Specifically, the mode used ( |
@mappu it is difficult to suggest anything without reproducible example. Even non reproducible example would be better than what you have provided - vague description of what you think your program does. Alex |
Change https://golang.org/cl/69871 mentions this issue: |
@mappu can you, please, try https://golang.org/cl/69871 to see if it fixes your problem? Thank you Alex |
Change https://golang.org/cl/70990 mentions this issue: |
…ficationModes for sockets CL 36799 made SetFileCompletionNotificationModes to be called for file handles. I don't think it is correct. Revert that change. Fixes #22024 Fixes #22207 Change-Id: I26260e8a727131cffbf60958d79eca2457495554 Reviewed-on: https://go-review.googlesource.com/69871 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-on: https://go-review.googlesource.com/70990 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Hi,
What version of Go are you using (
go version
)?go1.9.1 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Windows 10 amd64
What did you do?
I have a program that
What did you expect to see?
The Go program should receive data on stdin, then go about its business, as expected.
This works as expected on Go 1.8.4.
What did you see instead?
The Go program hangs at 0% CPU usage.
From the behaviour of the program i infer it is blocked on reading from stdin.
It hangs probably 5/10 attempts when launched via a Qt application, but interestingly it hangs 0/10 attempts when launched from cmd.exe.
This issue is almost identical to #22024, but my case is a bit different, because
The text was updated successfully, but these errors were encountered: