Subject: re: Strange behavious of getpeername(2) on pipe
To: Martin J. Laubach <mjl@emsi.priv.at>
From: matthew green <mrg@eterna.com.au>
List: tech-kern
Date: 03/27/2001 21:46:35
The program below (I hope I didn't goof up there) doesn't return
any error either:
*sigh* i needed to pay closer attention to your perl script.
[ ... ]
if(pipe(f) != 0)
[ ... ]
note that in NetBSD, pipe() is really a frontend for socketpair(), so
the fd's you get back from pipe are really sockets. this is why the
getpeername() is able to succeed. (FWIW, the sockaddr_in.sin_addr
for these results is 0.)
.mrg.