aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>2000-03-07 17:03:35 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>2000-03-07 17:03:35 +0000
commitbac62ec2c6fc141a00acd131278befa0ba5f1c5a (patch)
tree86020bf5baf8f9667899e964b4bbf69f410ed08e
parent982d9611ab63ae80ce0996415b501a2ba3393b5d (diff)
downloadmsec-bac62ec2c6fc141a00acd131278befa0ba5f1c5a.tar
msec-bac62ec2c6fc141a00acd131278befa0ba5f1c5a.tar.gz
msec-bac62ec2c6fc141a00acd131278befa0ba5f1c5a.tar.bz2
msec-bac62ec2c6fc141a00acd131278befa0ba5f1c5a.tar.xz
msec-bac62ec2c6fc141a00acd131278befa0ba5f1c5a.zip
*** empty log message ***
-rw-r--r--ChangeLog1
-rwxr-xr-xinit-sh/msec7
-rw-r--r--msec.spec1
3 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d3cc30..47ec38e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
2000-03-07 Yoann Vandoorselaere <yoann@mandrakesoft.com>
+ * trap the sigint signal
* use /etc/security/msec for config file only.
* Renamed init.sh to msec, and install it in /usr/sbin.
* The other shell scripts are located in /usr/share/msec
diff --git a/init-sh/msec b/init-sh/msec
index ee69564..2fc7c53 100755
--- a/init-sh/msec
+++ b/init-sh/msec
@@ -1,5 +1,12 @@
#!/bin/bash
+# Trap the sigint signal
+# so the msec process / subprocess can not be aborted by the user...
+# This will avoid trashing of config file while they are modified
+# if msec is interupted. ( thanks fg ).
+
+trap "" sigint
+
if [[ -z $1 ]]; then
echo "Usage : $0 [0-5]"
echo "Usage : $0 \"custom\""
diff --git a/msec.spec b/msec.spec
index a34a66b..9af10b8 100644
--- a/msec.spec
+++ b/msec.spec
@@ -49,6 +49,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Mar 07 Yoann Vandoorselaere <yoann@mandrakesoft.com>
+- trap the sigint signal.
- use %config for config file ( thanks to Frederic Lepied ).
- use /etc/security/msec for config file only.
- Renamed init.sh to msec, and install it in /usr/sbin.