Hacker News new | ask | show | jobs
by Joker_vD 607 days ago
Well, yes:

    EINVAL    fd is bound to a special file (e.g., a pipe, FIFO, or
              socket) which does not support synchronization.
Or as POSIX puts it,

    [EINVAL]
        The fildes argument does not refer to a file on which this operation is possible.