On Mon, Nov 14, 2011 at 13:58, Ferenc Wagner <wferi@niif.hu> wrote:
Brandon Allbery <allbery.b@gmail.com> writes:
> More generally, Unix/POSIX lacks a good event-based interface which
> can detect non-file-like events; many things map to signals, which can
> be sort of handled gracefully with some hackery in C but are not
> handled particularly well by GHC's runtime.

I guess you miss the Linux-only signalfd/eventfd, right?

"Linux-only" is the problem there.  I know Linux folk like to imagine they define Unix and POSIX, but there are others out there still.  Same problem with BSD's kqueue:  I can't use it on Linux and only to a limited extent on OS X which has still another mechanism of its own (Mach ports).

It's the *portable* general event interface that is missing.

--
brandon s allbery                                      allbery.b@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms