HomeFreeBSD

tee: try opening as a UNIX socket if open(2) fails

Description

tee: try opening as a UNIX socket if open(2) fails

If we get EOPNOTSUPP from open() failing, then it may just be that we're
looking at a unix(4) socket instead of a normal file/device or whatnot.
Fallback to trying to open it as a unix(4) socket, which is a useful
feature that doesn't add much complexity.

Reviewed by: des, emaste, markj

(cherry picked from commit 1b3748977f28c70e0b161fb476bf4e075bcc5940)

Details

Provenance
kevansAuthored on Sun, Apr 20, 4:34 PM
Parents
rG66d36f4f1025: Turn off hw.pci.intx_reroute in EC2
Branches
Unknown
Tags
Unknown