aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-09-09 02:24:08 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-09-09 02:24:08 +0000
commit83a47929207995988fc9f2945885c0c66fcbecd4 (patch)
treef758a4cde3d0498cb50ba50c9d51856878ea2018 /src
parentec0b7645310fc87a2bf4c3518ad6deb9ed8b4521 (diff)
downloadmsec-83a47929207995988fc9f2945885c0c66fcbecd4.tar
msec-83a47929207995988fc9f2945885c0c66fcbecd4.tar.gz
msec-83a47929207995988fc9f2945885c0c66fcbecd4.tar.bz2
msec-83a47929207995988fc9f2945885c0c66fcbecd4.tar.xz
msec-83a47929207995988fc9f2945885c0c66fcbecd4.zip
msecgui does not needs a lock file
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/msecgui18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/msec/msecgui b/src/msec/msecgui
index ef440ba..b7c9162 100755
--- a/src/msec/msecgui
+++ b/src/msec/msecgui
@@ -8,24 +8,6 @@ if [ "`whoami`" != "root" ]; then
exit 1
fi
-LCK=/var/run/msec.pid
-
-function cleanup() {
- rm -f $LCK
-}
-
-if [ -f $LCK ]; then
- if [ -d /proc/`cat $LCK` ]; then
- exit 0
- else
- rm -f $LCK
- fi
-fi
-
-echo -n $$ > $LCK
-
-trap cleanup 0
-
MSEC=/usr/share/msec/msecgui.py
OPT="$@"