mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-08-27 04:37:35 +00:00
6c86f88e1068979bbb55c8cb485d257fa770c6c9
A binary that does not dispatch the probe argument runs its normal startup; a long-running one outlives the deadline and was killed before the handshake check could run, so PROBE_UNSUPPORTED never latched and every enumeration cycle spawned a full consumer process again. The timeout path now judges the child by what it already wrote: a real probe prints the magic line first and flushes, so its absence after a whole deadline means this is not a probe. Only the buffered bytes are read, non-blocking, because an EOF-seeking read could hang on a grandchild that inherited the write end of the pipe. Also report the exit status when a failed child left stderr empty, which panic=abort and signals do, and name the malformed-list case in the deserialization error.
Description
No description provided
Languages
Rust
100%