On Tue, Dec 09, 2008 at 11:43:32AM +0100, Rapsey wrote: > This program works normally on ubuntu, but on os x leopard it immediately > exits with errno: "Operation not supported". Why does it not work on > os x?
Short version: You're using stdin, and it looks like the backend libevent uses on leopard doesn't support non-socket fds. Libevent uses underlying nonblocking IO mechanisms the platform gives it. Some of these work well with non-socket file descriptors; some don't. By default, libevent uses the fastest (best-scaling) backend that it knows about for your platform, even if that backend doesn't support all kinds of fd. In the current svn trunk (which will eventually become libevent 2.0), there's a feature to let you specify that you want a backend that works with file descriptors, even if it doesn't scale well. yrs, -- Nick _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users