Re: is Event the best event loop module?

2001-07-13 Thread Uri Guttman
> "NI" == Nick Ing-Simmons <[EMAIL PROTECTED]> writes: NI> The way I have seen this fixed is to have signal handler write() NI> to a pipe that is in the select() list rather than just set a flag. that is a great solution. i did something very similar to manage a set of worker thread doin

Re: is Event the best event loop module?

2001-07-13 Thread Nick Ing-Simmons
Danny Faught <[EMAIL PROTECTED]> writes: >Uri Guttman wrote: >> are you doing your own signal handling in perl? if so, you should switch >> to event.pm. perl's signal handling is well known to be unsafe. > >I'm putting together some code samples to explain how event loops work, >but for any seriou

Re: is Event the best event loop module?

2001-07-13 Thread Nick Ing-Simmons
Uri Guttman <[EMAIL PROTECTED]> writes: >> "DF" == Danny Faught <[EMAIL PROTECTED]> writes: > > > DF> It looks like your signal handler just sets a flag when it's invoked, > DF> which is the same way I do it. This means that you depend on the event > DF> loop to wake up and check the flag.