On 11/27/16 3:47 PM, Dmitry Goncharov wrote:
> On Fri, Nov 25, 2016 at 12:40:58PM -0500, Chet Ramey wrote:
>> On 11/25/16 9:57 AM, Dmitry Goncharov wrote:
>>> Auto variables have unspecified values after a call to longjmp.
>>
>> This is true. It's what the USE_VAR macro is intended to defeat, but let's
>> see what marking i volatile does.
>
> Chet, can you please tell why sigalarm/longjmp was preferred over select?
Well, 17 years ago when that code went into `read', SIGALRM was more
portable and fit better with the existing code base.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/