package afdata
import (
"errors"
"syscall"
)
// errorNoData is ERROR_NO_DATA: "The pipe is being closed", which a write to a
// pipe whose reader has exited returns alongside ERROR_BROKEN_PIPE.
const errorNoData syscall.Errno = 232
// isClosedReader reports whether err means the reading end of the output
// stream has gone away, which a CLI treats as success.
func isClosedReader(err error) bool