diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-09 02:24:08 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-09 02:24:08 +0000 |
commit | 83a47929207995988fc9f2945885c0c66fcbecd4 (patch) | |
tree | f758a4cde3d0498cb50ba50c9d51856878ea2018 /src | |
parent | ec0b7645310fc87a2bf4c3518ad6deb9ed8b4521 (diff) | |
download | msec-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-x | src/msec/msecgui | 18 |
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="$@" |