[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No such device or address when opening /dev/fd/<x> on opened /dev/tcp so
From: |
Oğuz |
Subject: |
No such device or address when opening /dev/fd/<x> on opened /dev/tcp socket |
Date: |
Mon, 5 Apr 2021 22:14:53 +0300 |
5 Nisan 2021 Pazartesi tarihinde Chet Ramey <chet.ramey@case.edu> yazdı:
>
> There's no guarantee that file descriptors opened with socket(2) show up in
> /dev/fd. Bash doesn't emulate /dev/fd if the system provides it, so it's up
> to the OS on those systems whether they do or not.
>
> It doesn't generate that error on macOS, for instance, which has /dev/fd.
>
I can reproduce the error, but it is coming from `tee', which tries to open
`/dev/fd/??' as a regular file whereas it is a socket, and gets an ENXIO
error.
--
Oğuz
Re: No such device or address when opening /dev/fd/<x> on opened /dev/tcp socket, konsolebox, 2021/04/05