On Tue, Apr 5, 2022 at 10:00 AM c.maglie <c.mag...@bug.st> wrote:
>
> I'm facing an issue that looks like a deadlock, but that I can't
> actually figure out. After some investigation I can reproduce a similar
> problem with the following code:
>
> https://go.dev/play/p/ZB05nweJJX_9
>
> Running the example above as-is will show the expected output, but after
> uncommenting the time.Sleep inside the goroutine (so it executes after
> the "Select") then everything locks out.
>
> Is there a way to avoid this behaviour?

It works fine for me either way, on Linux kernel 5.15.15.  What system
are you running on?  What version of Go?  What version of
golang.org/x/sys/unix?

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVtrnCqnb-1Y5pbYJiawd3-O6vDbPE_wG2CXctRA-eo_Q%40mail.gmail.com.

Reply via email to