gerrit.sh: disown doesn't accept pid as a argument.
It wants a job-id, if none is supplied it will use the current job-id. This should be generic enough, but please verify. Change-Id: Ib6e5077149f6bf65790ced5577ed7aa1b770742f
This commit is contained in:
committed by
Shawn O. Pearce
parent
ab9f56ac4c
commit
967eae196f
@@ -382,12 +382,12 @@ case "$ACTION" in
|
||||
JAVA='$JAVA' ; export JAVA ;
|
||||
$RUN_EXEC $RUN_Arg1 '$RUN_Arg2' $RUN_Arg3 $RUN_ARGS &
|
||||
PID=\$! ;
|
||||
disown \$PID ;
|
||||
disown ;
|
||||
echo \$PID >\"$GERRIT_PID\""
|
||||
else
|
||||
$RUN_EXEC $RUN_Arg1 "$RUN_Arg2" $RUN_Arg3 $RUN_ARGS &
|
||||
PID=$!
|
||||
type disown >/dev/null 2>&1 && disown $PID
|
||||
type disown >/dev/null 2>&1 && disown
|
||||
echo $PID >"$GERRIT_PID"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user