summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-misc.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-31 12:15:53 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-31 12:15:53 +0100
commitb86bf8691c4f0fba765a0c432c49bc94571f91f9 (patch)
tree8e562adf378e82944ec5ec5bb9286f746033e121 /src/core/libs/lib-misc.sh
parent60737c99694d406562097eed5ede4ed7987a962f (diff)
runfile should be hidden
Diffstat (limited to 'src/core/libs/lib-misc.sh')
-rw-r--r--src/core/libs/lib-misc.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/libs/lib-misc.sh b/src/core/libs/lib-misc.sh
index f45c5c9..bd59ce0 100644
--- a/src/core/libs/lib-misc.sh
+++ b/src/core/libs/lib-misc.sh
@@ -14,7 +14,7 @@ run_background ()
debug "run_background called. identifier: $1, command: $2, logfile: $3"
( \
- touch $RUNTIME_DIR/$1-running
+ touch $RUNTIME_DIR/.$1-running
debug "run_background starting $1: $2 >>$3 2>&1"
[ -f $3 ] && echo -e "\n\n\n" >>$3
echo "STARTING $1 . Executing $2 >>$3 2>&1\n" >> $3;
@@ -23,7 +23,7 @@ run_background ()
read $var_exit <<< $? #TODO: bash complains about 'not a valid identifier'
debug "run_background done with $1: exitcode (\$$1_exitcode): "${!var_exit}" .Logfile $3" #TODO ${!var_exit} doesn't show anything --> maybe fixed now
echo >> $3
- rm -f $RUNTIME_DIR/$1-running
+ rm -f $RUNTIME_DIR/.$1-running
) &
sleep 2
@@ -36,7 +36,7 @@ wait_for ()
{
[ -z "$1" ] && die_error "wait_for needs an identifier to known on which command to wait!"
- while [ -f $RUNTIME_DIR/$1-running ]
+ while [ -f $RUNTIME_DIR/.$1-running ]
do
#TODO: follow_progress dialog mode = nonblocking (so check and sleep is good), cli mode (tail -f )= blocking? (so check is probably not needed as it will be done)
sleep 1
@@ -66,4 +66,4 @@ check_is_in ()
cleanup_runtime ()
{
rm -rf $RUNTIME_DIR/.dia* &>/dev/null
-} \ No newline at end of file
+}