libevent EVLOOP_NO_EXIT_ON_EMPTY not working?
问题 I don't understand how the EVLOOP_NO_EXIT_ON_EMPTY flag is supposed to work in version 2.1.x of libevent. If I don't add any events to my event_base the event_base_loop(my_base, EVLOOP_NO_EXIT_ON_EMPTY); call returns immediately which is not at all what I think it's supposed to do. If I add an event it loops with that pending event until it get's active but then the loop exits which I hoped would not happen. Goal: Have a named pipe open and libevent listening for a read. Whenever I echo