summaryrefslogtreecommitdiff
path: root/cli/standalone/binary.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-04-04 12:06:58 -0600
committerGitHub <noreply@github.com>2024-04-04 18:06:58 +0000
commit7cc584ed79da3addeb7758cf0c6480000a00a112 (patch)
treebb422fc02171429709d7cb25c614fe1959d8247f /cli/standalone/binary.rs
parent207349cfb7080493592f61f9b465c25892531171 (diff)
fix(cli): fix deadlock in test writer when test pipe is full (#23210)
The tests would deadlock if we tried to write the sync marker into a pipe that was full because one test streamed just enough data to fill the pipe, so when we went to actually write the sync marker we blocked when nobody was reading. We use a two-phase lock for sync markers now: one to indicate "ready to sync" and the second to indicate that the sync bytes have been received.
Diffstat (limited to 'cli/standalone/binary.rs')
0 files changed, 0 insertions, 0 deletions