bug-gnulib
[Top][All Lists]
Advanced

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

Re: bogus configure output for strstr


From: Bruno Haible
Subject: Re: bogus configure output for strstr
Date: Tue, 31 Aug 2010 01:20:15 +0200
User-agent: KMail/1.9.9

Hi Eric,

> Is it worth trying to silence the spurious "Alarm clock" message

Yes: The normal configure output should be as regular as possible,
because we want users to report anomalies to us.

> by changing strstr.m4 (and friends with related timeout idioms) to use:
> 
> static void quit (int sig) { exit (sig + 128); }
> ...
>      signal (SIGALRM, quit);
> 
> instead of the current:
> 
>      signal (SIGALRM, SIG_DFL);

If you write it like this, it will be a no-op (because the shell does
not see the signal that killed the process, it sees the exit code of the
process). You need to write

  static void quit (int sig) { exit (1); }

with an exit code between 1 and 127.

Affected files: strstr.m4, strcasestr.m4, memmem.m4.

Bruno



reply via email to

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