Re: [racket] Deadlock with FIFO files

2014-10-26 Thread Eric Dobson
I attempted reviewing the attached file, and it looks fine and I can replicate the buggy behavior, but I'm not that familiar with kqueue. Thanks for the quick turnaround/fix. On Sun, Oct 26, 2014 at 8:14 AM, Matthew Flatt wrote: > It looks like kqueue() is broken for FIFOs on Mac OS X. See the >

Re: [racket] Deadlock with FIFO files

2014-10-26 Thread Matthew Flatt
It looks like kqueue() is broken for FIFOs on Mac OS X. See the enclosed "kqueue_fifo.c". Unless I'm confused (a review of the enclosed program would be welcome), adding a kqueue event to watch for FIFO input disables an event that watches for FIFO output space, or something like that. I enabled t

[racket] Deadlock with FIFO files

2014-10-25 Thread Eric Dobson
I'm attempting to use FIFOs as a simple IPC mechanism and I'm getting into a deadlock. I've simplified my program to the following and am still getting deadlocks. I believe that this shouldn't have an issues, but I might be wrong about that. Am I doing something wrong, or might this be a bug in the