bug in 2.2.0-final with pipes and /proc/self/fd/N

Zack Weinberg (zack@rabi.columbia.edu)
Mon, 25 Jan 1999 16:43:56 -0500


In 2.2.0-final, if standard output is a pipe, /proc/self/fd/1 can be
stat()ed successfully, but attempting to open it again fails with
ENOENT.

Example:

$ sh | cat
exec 3>/proc/self/fd/1
sh: /proc/self/fd/1: No such file or directory

zw

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/