On Mon, Jun 11, 2018 at 2:19 AM Paul Warren <pdw@ex-parrot.com> wrote:
Hi Shawn,

Thanks for this.  Unfortunately, it doesn't work:

r = read(fds[1], &buf, sizeof(buf));

 

Ahh, on my Ubuntu machine optimization led the close() on the wrong fd to run _after_ the read(), so it worked. But thankfully you caught it (this is why we test!).