aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-15 14:16:55 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-15 14:16:55 +0000
commit11ec0cbf7d2de6b16787e710d54c4fb1e491018f (patch)
tree265802edcb619d4e51cad83d22565fe14e6f447f /iurt2
parent6cf264af576ce31e3d5c92983dc8627ac194c95b (diff)
downloadiurt-11ec0cbf7d2de6b16787e710d54c4fb1e491018f.tar
iurt-11ec0cbf7d2de6b16787e710d54c4fb1e491018f.tar.gz
iurt-11ec0cbf7d2de6b16787e710d54c4fb1e491018f.tar.bz2
iurt-11ec0cbf7d2de6b16787e710d54c4fb1e491018f.tar.xz
iurt-11ec0cbf7d2de6b16787e710d54c4fb1e491018f.zip
print at which time we got killed
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt25
1 files changed, 3 insertions, 2 deletions
diff --git a/iurt2 b/iurt2
index c32107c..15bf97a 100755
--- a/iurt2
+++ b/iurt2
@@ -51,6 +51,7 @@ use File::Basename qw(fileparse);
use Mkcd::Commandline qw(parseCommandLine usage);
use MDK::Common;
use Filesys::Df qw(df);
+use POSIX;
sub bug_handler {
@@ -70,9 +71,9 @@ sub bug_handler {
$SIG{SEGV} = sub { bug_handler(@_, 1) };
$SIG{__DIE__} = \&bug_handler;
$SIG{TERM} = sub {
- warn "Got KILLED by SIGTERM";
+ warn "Got KILLED by SIGTERM at " . strftime("%c", localtime()) . " .\n";
exit(1);
- };
+};
my $program_name = 'iurt2';
my $VERSION = '0.6.2';