martin f. krafft: Trap SIGINT in bugscript to prevent incomplete reports
Martin F. Krafft
madduck at alioth.debian.org
Tue May 5 09:52:55 UTC 2009
Module: mdadm
Branch: build
Commit: b4ae020086a6c8e88099b212da3114383e08444a
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=b4ae020086a6c8e88099b212da3114383e08444a
Author: martin f. krafft <madduck at debian.org>
Date: Tue May 5 11:44:41 2009 +0200
Trap SIGINT in bugscript to prevent incomplete reports
Signed-off-by: martin f. krafft <madduck at debian.org>
---
debian/bugscript | 3 +++
debian/changelog | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/debian/bugscript b/debian/bugscript
index 3aa5ae2..5ebb2f1 100755
--- a/debian/bugscript
+++ b/debian/bugscript
@@ -28,6 +28,9 @@ if ! command -v yesno >/dev/null; then
exec 3>&1
fi
+# do not let people ctrl-c out of the bugscript
+trap : INT
+
if [ $(id -u) != 0 ]; then
if [ -x "$(command -v sudo)" ]; then
yesno "Gather system information as root using sudo? (Y/n) " yep
diff --git a/debian/changelog b/debian/changelog
index 418ac23..83eccb5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ mdadm (2.6.9-3) unstable; urgency=low
a normal user.
* Include MD5 sums of md-related files in initrd in bug reports.
* Add grub2 information retrieval to bugscript.
+ * Trap SIGINT and thus prevent ctrl-c from terminating the bugscript
+ prematurely.
-- martin f. krafft <madduck at debian.org> Sun, 03 May 2009 17:29:47 +0200
More information about the pkg-mdadm-commits
mailing list