Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 1996 10:00:01 -0700 (PDT)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-bugs
Subject:   Re: kern/1397: can't send to a pipe
Message-ID:  <199607181700.KAA02495@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/1397; it has been noted by GNATS.

From: J Wunsch <j@uriah.heep.sax.de>
To: markd@Grizzly.COM
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/1397: can't send to a pipe
Date: Thu, 18 Jul 1996 18:48:35 +0200 (MET DST)

 As Mark Diekhans wrote:
 
 >   Pipes are implemented as sockets and this is what fstat
 > reports. However send returns a "Socket operation on non-socket"
 > error.  Either socket operations should work or fstat should report
 > the file as a FIFO, not a socket.
 
 Pipes are no longer implemented as sockets.  Using socket operations
 on them was illegal all the time, even if the kernel has not been
 reporting the error.
 
 Pipes are no longer reported by fstat (i think this is an error, or
 at least an omission):
 
 j        less        6320   wd /tmp          2 drwxrwxrwt     512  r
 j        less        6320    1 /           741 crw--w----   ttyp5 rw
 j        less        6320    2 /           741 crw--w----   ttyp5 rw
 j        less        6320    3 /           348 crw-rw-rw-     tty  r
 j        uulog       6319   wd /tmp          2 drwxrwxrwt     512  r
 j        uulog       6319    0 /           741 crw--w----   ttyp5 rw
 j        uulog       6319    2 /           741 crw--w----   ttyp5 rw
 j        uulog       6319    3 /var       4758 -rw-r--r--  335307  r
 
 That's a "uulog | less", you can see that uulog's fd 1 and less' fd 0
 are not displayed at all.
 
 FIFO's are being flagged correctly:
 
 j        uulog       6339    1 /tmp         21 prwxr-xr-x       0  w
 ...
 j        cat         6338    3 /tmp         21 prwxr-xr-x       0  r
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607181700.KAA02495>