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
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())
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):
>
>
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
- 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: