I think that the Solaris one is right.
>
> linux 2.4
> ---------
> $ uname -a
> Linux XXXXX 2.4.2-ac20 #8 Wed Mar 14 01:53:05 EST 2001 i686 unknown
> $ ./t
> select result=2
> read: Transport endpoint is not connected
Select says that the socket is ready for both input and output. A read
results in ENOTCONN, a write results in EPIPE.
> linux 2.2
> ---------
> $ uname -a
> Linux XXXXX 2.2.18 #1 Thu Dec 21 21:13:10 EST 2000 i586 unknown
> $ ./t
> select result=1
Select says that the socket is ready for output, but a write results
in EPIPE.
>
> solaris
> -------
> $ uname -a
> SunOS XXXXX 5.7 Generic_106541-07 sun4m sparc sun4m
> $ ./t
> select result=0
And Digital Unix is right too:
$ uname -a
OSF1 XXX V4.0 1229 alpha
$ ./a.out
select result=0
Thanks,
Radu Greab
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/