Function
read_process
(stream, buffer, debug_stream, stream_name, finish)
Source from the content-addressed store, hash-verified
| 370 | |
| 371 | |
| 372 | def read_process(stream, buffer, debug_stream, stream_name, finish): |
| 373 | while True: |
| 374 | line = stream.readline() |
| 375 | if not line: |
| 376 | break |
| 377 | |
| 378 | line = line.decode("utf-8", errors="replace") |
| 379 | |
| 380 | if SHOW_STDOUT: |
| 381 | debug_stream.write( |
| 382 | "%s: %s" |
| 383 | % ( |
| 384 | stream_name, |
| 385 | line, |
| 386 | ) |
| 387 | ) |
| 388 | buffer.append(line) |
| 389 | |
| 390 | if finish[0]: |
| 391 | return |
| 392 | |
| 393 | |
| 394 | def start_in_daemon_thread(target, args): |
Callers
nothing calls this directly
Tested by
no test coverage detected