Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!uunet!mcsun!unido!tub!net From: net@tub.UUCP (Oliver Laumann) Newsgroups: comp.unix.wizards Subject: Re: Passing 0 to accept(2) as second and third argument. Message-ID: <957@tub.UUCP> Date: 19 Sep 89 09:26:20 GMT References: <7936@cbmvax.UUCP> Reply-To: net@tub.UUCP (Oliver Laumann) Organization: Technical University of Berlin, Germany Lines: 10 In article <7936@cbmvax.UUCP> ag@cbmvax.UUCP (Keith Gabryelski) writes: > while (accept(s, 0, 0) < 0) { > > I am wondering if this is actually considered a feature [..] It's an undocumented feature of at least 4.3 BSD. By the way, the call to accept() should probably read "accept(s, (struct sockaddr *)0, (int *)0)". -- Oliver Laumann net@TUB.BITNET net@tub.UUCP