Skip to content

Commit

Permalink
Merge pull request #12183 from dachary/wip-17830-eio
Browse files Browse the repository at this point in the history
tests: facilitate background process debug in ceph-helpers.sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Nov 25, 2016
2 parents b569c8d + f491ea0 commit fbb0987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/workunits/ceph-helpers.sh
Expand Up @@ -1413,7 +1413,7 @@ function run_in_background() {
shift;
# Execute the command and prepend the output with its pid
# We enforce to return the exit status of the command and not the awk one.
("$@" |& awk '{ a[i++] = $0 }END{for (i = 0; i in a; ++i) { print PROCINFO["pid"] ": " a[i]} }'; return ${PIPESTATUS[0]}) &
("$@" |& awk '{ a[i++] = $0 }END{for (i = 0; i in a; ++i) { print "'$$': " a[i]} }'; return ${PIPESTATUS[0]}) >&2 &
eval "$pid_variable+=\" $!\""
}

Expand Down

0 comments on commit fbb0987

Please sign in to comment.