Mercurial > hg > octave-kai > gnulib-hg
changeset 10192:0553e4d56bcc
Work around environments that (stupidly) ignore SIGALRM.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 10 Jun 2008 12:13:43 +0200 (2008-06-10) |
parents | ccfd3047da72 |
children | b67d0f4f1513 |
files | ChangeLog tests/test-memmem.c tests/test-strcasestr.c tests/test-strstr.c |
diffstat | 4 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-06-10 Bruno Haible <bruno@clisp.org> + + * tests/test-memmem.c (main): Reset SIGALRM to default handling before + using alarm(). + * tests/test-strcasestr.c (main): Likewise. + * tests/test-strstr.c (main): Likewise. + 2008-06-09 Bruno Haible <bruno@clisp.org> Work around the Solaris 10 ACE ACLs ABI change.
--- a/tests/test-memmem.c +++ b/tests/test-memmem.c @@ -43,6 +43,7 @@ caused by SIGALRM. All known platforms that lack alarm also lack memmem, and the replacement memmem is known to not take too long. */ + signal (SIGALRM, SIG_DFL); alarm (100); #endif