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
Parents
rS354623: Add asserts for some state transitions
Branches
Unknown
Tags
Unknown