Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: Allowing traps
- X-seq: zsh-workers 13187
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>, zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: Re: Allowing traps
- Date: Thu, 23 Nov 2000 21:58:04 +0000
- In-reply-to: <0G4H00BMAYYZB4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <0G4H00BMAYYZB4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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