Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!tub!net From: net@tub.UUCP (Oliver Laumann) Newsgroups: comp.windows.x Subject: Re: Folllowup question:MULTIPLE servers Message-ID: <1141@tub.UUCP> Date: 16 Jan 90 13:13:33 GMT References: <287@dino.cs.iastate.edu> <6820@westford.ccur.com> <6821@masscomp.ccur.com> Reply-To: net@tub.UUCP (Oliver Laumann) Organization: Technical University of Berlin, Germany Lines: 14 In article <6821@masscomp.ccur.com> black@westford.ccur.com (Sam Black) writes: > Oops... > > > if (select(3, &mask, NULL, NULL, NULL) != -1) > > should be > > > if (select(maxfd, &mask, NULL, NULL, NULL) != -1) Actually it should be > > if (select(maxfd, &mask, (int *)0, (int *)0, (int *)0) != -1) (except when you are using function prototypes).