Unverified Commit bf02c84c authored by Joseph Huber's avatar Joseph Huber Committed by GitHub
Browse files

[libc] Use file lock to join newline on RPC puts call (#73373)

Summary:
The puts call appends a newline. With multiple threads, this can be done
out of order such that another thread puts something before we finish
appending the newline. Add a flockfile and funlockfile to ensure that
the whole string is printed before another string can appear.
parent 839abdb0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment