Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: facilitate background process debug in ceph-helpers.sh #12183

Merged
merged 1 commit into from Nov 25, 2016
Merged

tests: facilitate background process debug in ceph-helpers.sh #12183

merged 1 commit into from Nov 25, 2016

Conversation

ghost
Copy link

@ghost ghost commented Nov 24, 2016

When displaying the output of a background process, do it on stderr so
that it is not bufferized. Otherwise the output of the background
process may be displayed after it completed.

Prefix the output of a background process with the PID of the process
known to the parent instead of the PID of the awk process processing the
output. When wait_background loops, it will print the process on which
it is waiting and it is confusing that they do not match with the PID
prefixing the process output.

Refs: http://tracker.ceph.com/issues/17830

Signed-off-by: Loic Dachary loic@dachary.org

When displaying the output of a background process, do it on stderr so
that it is not bufferized. Otherwise the output of the background
process may be displayed after it completed.

Prefix the output of a background process with the PID of the process
known to the parent instead of the PID of the awk process processing the
output. When wait_background loops, it will print the process on which
it is waiting and it is confusing that they do not match with the PID
prefixing the process output.

Refs: http://tracker.ceph.com/issues/17830

Signed-off-by: Loic Dachary <loic@dachary.org>
@ghost ghost added cleanup tests labels Nov 24, 2016
@ghost ghost added this to the kraken milestone Nov 24, 2016
@ghost ghost assigned tchaikov Nov 24, 2016
@tchaikov tchaikov merged commit fbb0987 into ceph:master Nov 25, 2016
@tchaikov
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants