Passing 0 to accept(2) as second and third argument.

Doug Gwyn gwyn at smoke.BRL.MIL
Mon Sep 18 22:14:09 AEST 1989


In article <7936 at cbmvax.UUCP> ag at cbmvax.UUCP (Keith Gabryelski) writes:
>	while (accept(s, 0, 0) < 0) {
>BTW, passing a null pointer as the second or third argument to
>accept() is not documented under any of the accept man pages I've read

And in any case, those aren't null pointers, they're 0-valued integers.
On some systems this does matter.



More information about the Comp.unix.wizards mailing list