Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: volatile Message-ID: <1988Apr5.213059.1457@utzoo.uucp> Organization: U of Toronto Zoology References: <12578@brl-adm.ARPA> <1988Mar25.172355.348@utzoo.uucp> Date: Tue, 5 Apr 88 21:30:59 GMT > What about signal handlers? I'm only gonna say this one more time: just about the only fully portable thing a signal handler can do is set a flag. Not just any flag, but a flag of type sig_atomic_t, defined in in an ANSI C implementation. Since sig_atomic_t can be as magic as necessary, volatile isn't *really* needed here. (I concede that it is useful in some classes of semi-portable code.) -- "Noalias must go. This is | Henry Spencer @ U of Toronto Zoology non-negotiable." --DMR | {allegra,ihnp4,decvax,utai}!utzoo!henry