[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Automake branch, branch-1-10, updated. Release-1-10-45-gd9f29f
From: |
Ralf Wildenhues |
Subject: |
[SCM] GNU Automake branch, branch-1-10, updated. Release-1-10-45-gd9f29f9 |
Date: |
Sun, 18 Nov 2007 14:31:48 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".
http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=d9f29f9126d7a01b2c431a880d7ce4520fbe2d4e
The branch, branch-1-10 has been updated
via d9f29f9126d7a01b2c431a880d7ce4520fbe2d4e (commit)
from f3a0c4732aff326ce5e914f9301e7c861a262f41 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d9f29f9126d7a01b2c431a880d7ce4520fbe2d4e
Author: Ralf Wildenhues <address@hidden>
Date: Sun Nov 18 15:31:20 2007 +0100
Fix signal handling in aclocal.
* aclocal.in (unlink_tmp): If invoked by a signal, note so
in verbose mode. Reinstall default signal handler and reraise,
to transport the interrupt information.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
aclocal.in | 15 ++++++++++++++-
2 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1dff7cd..5dd7c48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-11-18 Ralf Wildenhues <address@hidden>
+
+ Fix signal handling in aclocal.
+ * aclocal.in (unlink_tmp): If invoked by a signal, note so
+ in verbose mode. Reinstall default signal handler and reraise,
+ to transport the interrupt information.
+
2007-11-12 Ralf Wildenhues <address@hidden>
Avoid spurious test failure with `make check TESTS=check5.test'.
diff --git a/aclocal.in b/aclocal.in
index eac545f..195ef81 100644
--- a/aclocal.in
+++ b/aclocal.in
@@ -150,14 +150,27 @@ my $erase_me;
################################################################
-# Erase temporary file ERASE_ME.
+# Erase temporary file ERASE_ME. Handle signals.
sub unlink_tmp
{
+ my ($sig) = @_;
+
+ if ($sig)
+ {
+ verb "caught SIG$sig, bailing out";
+ }
if (defined $erase_me && -e $erase_me && !unlink ($erase_me))
{
fatal "could not remove `$erase_me': $!";
}
undef $erase_me;
+
+ # reraise default handler.
+ if ($sig)
+ {
+ $SIG{$sig} = 'DEFAULT';
+ kill $sig => $$;
+ }
}
$SIG{'INT'} = $SIG{'TERM'} = $SIG{'QUIT'} = $SIG{'HUP'} = 'unlink_tmp';
hooks/post-receive
--
GNU Automake
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Automake branch, branch-1-10, updated. Release-1-10-45-gd9f29f9,
Ralf Wildenhues <=