--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3f8df371-4fda-44e2-8acb-b0743fb6b27en%40googlegroups.com.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3f8df371-4fda-44e2-8acb-b0743fb6b27en%40googlegroups.com.
- implementation using unix.Select (btw, I explicitly mentioned unix.Select in my OP): https://github.com/siemens/cshargextcap/blob/2f45f96748e835f0fef4cf429ca27f92a6c60a33/pipe/checker_notwin.go
- unit test producing this behavior, differing between Linux and macos: https://github.com/siemens/cshargextcap/blob/2f45f96748e835f0fef4cf429ca27f92a6c60a33/pipe/checker_notwin_test.go
That should suffice as a minimal example. "go test -v ./pipe -ginkgo.v" gives details as the test progresses.
I'm opening both named pipe ends as follows (in different processes):os.OpenFile(fifoname, os.O_WRONLY, os.ModeNamedPipe)os.OpenFile(fifoname, os.O_RDONLY, os.ModeNamedPipe)
On Sat, Dec 16, 2023 at 7:54 AM 'TheDiveO' via golang-nuts <golan...@googlegroups.com> wrote:
I only glanced at your unit test but the sleeps and goroutines without any explicit synchronization (e.g., using a sync.WaitGroup) look to me like a source of non-deterministic behavior.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a7fe0e6e-d6b0-4881-a02c-61516684caf9n%40googlegroups.com.
poll and select for this behavior was broken in FreeBSD up until 195423 was committed as detailed by this bug report.Given the MacOS and FreeBSD have related history I wouldn't be surprised if this is a bug in the OS implementation with poll on MacOS.