Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: Allowing traps



On Nov 23,  9:42pm, Peter Stephenson wrote:
} Subject: Re: PATCH: Re: Allowing traps
}
} Bart wrote:
} > We could start by wrapping every function in mem.c with queue_signals()/
} > unqueue_signals().  That'd probably take care of a lot of the problems.
} 
} We did something pretty similar some time ago (1992?) --- the performance
} hit was ghastly, so we removed it.

The something similar was to actually block and unblock the signals, which
meant two system calls on every operation; queue_signals() does nothing but
increment/decrement a counter unless a signal actually arrives.  

I definitely am not recommending blocking and unblocking signals here.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author