emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: block_input for some APIs


From: Stefan Monnier
Subject: Re: block_input for some APIs
Date: Mon, 12 Dec 2016 16:48:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> Does anyone remember why we block input around calls to functions like
>> getpwnam or tzset or fwrite?
> I think this dates back to when C-g and/or other handlers called
> longjmp.

I'm not completely sure, but my own impression is that this dates back
to before SYNC_INPUT, i.e. with input became available, we'd get an IO
signal and in the handler we'd run a whole bunch of code, since
reentrance was a big issue.  Nowadays we delay this async processing to
the next QUIT so there's no re-entrance issue any more.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]