Re: [go-nuts] unix.Select with fd gotten from named pipe on macos behaves differently compared to linux

2023-12-16 Thread Kurtis Rader
On Fri, Dec 15, 2023 at 7:13 AM 'TheDiveO' via golang-nuts < golang-nuts@googlegroups.com> wrote: > 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) > Passing

Re: [go-nuts] unix.Select with fd gotten from named pipe on macos behaves differently compared to linux

2023-12-16 Thread Kurtis Rader
I should probably clarify that my copy of TheDiveO code simply added the following function and replaced the use of github.com/sirupsen/logrus with println. func main() { f, err := os.OpenFile("p", os.O_RDONLY, 0) if err != nil { println("open p", err.Error())

Re: [go-nuts] unix.Select with fd gotten from named pipe on macos behaves differently compared to linux

2023-12-16 Thread Kurtis Rader
On Sat, Dec 16, 2023 at 7:54 AM 'TheDiveO' via golang-nuts < golang-nuts@googlegroups.com> wrote: > >- implementation using unix.Select (btw, I explicitly mentioned >unix.Select in my OP): > >

[go-nuts] How do I get a benchmark for the go toolchain instead of the compiler?

2023-12-16 Thread 'qiulaidongfeng' via golang-nuts
https://go-review.googlesource.com/c/go/+/533015 use pgo for the entire tool chain, not just to the compiler. See https://github.com/golang/go/blob/master/src/cmd/compile/profile.sh, default.pgo contains the data of the std and cmd, so should for the other go tool chain is also useful. But

Re: [go-nuts] unix.Select with fd gotten from named pipe on macos behaves differently compared to linux

2023-12-16 Thread 'TheDiveO' via golang-nuts
- 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: