autoconf-patches
[Top][All Lists]
Advanced

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

Re: Shouldn't use $? in traps for non-zero signals


From: Alexandre Oliva
Subject: Re: Shouldn't use $? in traps for non-zero signals
Date: 02 Jun 2001 02:10:00 -0300
User-agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Academic Rigor)

On Jun  1, 2001, Pavel Roskin <address@hidden> wrote:

> +     * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
> +     for signals other than 0 - exit with code 1.
> +     * m4sh.m4 (AS_TMPDIR): Likewise.
> +     * autoconf.in: Likewise. Also don't rely on exit == exit $?.
> +     * autoheader.in: Likewise.
> +     * autoreconf.in: Likewise.
> +     * tests/torture.at (Signal handling): New test for the above.

Ok, except that...

> +kill -INT $$

I don't think this is portable.  I'd rather use the signal number
directly, as we do in the trap set-up.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

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