diff options
author | Pavel Hofman <pavel.hofman@ivitera.com> | 2009-11-11 12:40:35 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-11-11 12:40:35 +0100 |
commit | a6769ebf0338188a44a260d99f024bf2bf954a44 (patch) | |
tree | 787d85eb9fbfae36153e6cc3b475ef23a2ae9adf /src/core/libs | |
parent | 0b4916b8b07c8f6de2f65d170854796ea86bee1a (diff) |
variable assigment syntax error
Diffstat (limited to 'src/core/libs')
-rw-r--r-- | src/core/libs/lib-misc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-misc.sh b/src/core/libs/lib-misc.sh index eec5a2e..7129f58 100644 --- a/src/core/libs/lib-misc.sh +++ b/src/core/libs/lib-misc.sh @@ -30,7 +30,7 @@ run_controlled () # run a process in the background, and log it's stdout and stderr to a specific logfile -# returncode is stored in $<identifier>_exitcode +# returncode is stored in BACKGROUND_EXIT # pid of the backgrounded wrapper process is stored in BACKGROUND_PID (this is _not_ the pid of $2) # $1 identifier -> WARNING: do never ever use -'s or other fancy characters here. only numbers, letters and _ please. (because $<identifier>_exitcode must be a valid bash variable!) # $2 command (will be eval'ed) @@ -48,7 +48,7 @@ run_background () [ -f $3 ] && echo -e "\n\n\n" >>$3 echo "STARTING $1 . Executing $2 >>$3 2>&1\n" >> $3; eval "$2" >>$3 2>&1 - $BACKGROUND_EXIT=$? + BACKGROUND_EXIT=$? debug 'MISC' "run_background done with $1: exitcode (\$$1_exitcode): ${!var_exit} .Logfile $3" echo >> $3 rm -f $RUNTIME_DIR/aif-$1-running |