HomeFreeBSD

tip/cu: check for EOF on input on the local side

Description

tip/cu: check for EOF on input on the local side

If cu reads an EOF on the input side, it goes into a tight loop
sending a garbage byte to the remote. With this change, it exits
gracefully, along with its child.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon

Details

Provenance
vangyzenAuthored on Nov 11 2019, 5:41 PM
Parents
rG45fceedf8755: Add asserts for some state transitions
Branches
Unknown
Tags
Unknown

Event Timeline