From:
Mark Crispin <markrcris...@panda.com>

To work around this, I tried to use a setjmp()/longjmp() in the signal handler that would take imapd back to the main command loop and then to code to save and exit. Supposedly, longjmp() is supposed to unwind whatever context occurred since the setjmp().


I don't think longjmp() is async signal safe.

http://unix.derkeiler.com/Newsgroups/comp.unix.programmer/2003-04/0984.html

If it isn't the longjmp(), then I don't know what the hell is going on.

I suspect that doing longjmp() in an asynchronously called signal handler is asking for trouble.

cheers
David

--
   david.houl...@anu.edu.au         NCI National Facility
   Phone: +61 2 6125 0578           and ANU Supercomputer Facility
   Fax:   +61 2 6125 8199           Leonard Huxley Bldg (No. 56)
                                    Australian National University
                                    Canberra, ACT, 0200, Australia
_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to