diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-15 14:16:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-15 14:16:55 +0000 |
commit | 11ec0cbf7d2de6b16787e710d54c4fb1e491018f (patch) | |
tree | 265802edcb619d4e51cad83d22565fe14e6f447f /iurt2 | |
parent | 6cf264af576ce31e3d5c92983dc8627ac194c95b (diff) | |
download | iurt-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-x | iurt2 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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'; |