BTW, thanks for the this information... that was indeed the problem. I think the only disturbing thing was how difficult it was to find this solution; though my "google skills" are only "adequate".

I had a pretty good idea what was going on, and even looked through API documentation for something "init" related. Hopefully the next person will get a hit on my email subject line.

I'm sure this has nothing to do with anybody on the list, but I installed a macports package labeled as [EMAIL PROTECTED] but it actually installed a library with a version name 1.3.9 and a header file that did not include event_reinit(). In the end, I had to install from source, which was fine of course.

Anyway, thanks for the info and the great library.

- Reid

On 20-Jul-08, at 11:38 PM, Niels Provos wrote:

On Sun, Jul 20, 2008 at 7:37 PM, Reid van Melle <[EMAIL PROTECTED]> wrote:
The file descriptors for socket pairs and/or pipes do not seem to function properly in libevent after a process fork on MacOS. The same code works fine in Linux. After registering an event and calling libevent_loop, I get
a bad file descriptor message.

After you fork, you need to call event_reinit() in your child.  Kqueue
does not survive across forks and that's the default notification
mechanism in Mac OS X.

Niels.

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to