home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!wupost!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!recnews
- From: lindner@mudhoney.unet.umn.edu (Paul Lindner)
- Newsgroups: alt.gopher
- Subject: Re: Sockfd = 0???
- Message-ID: <199207212045.AA21390@mudhoney.micro.umn.edu>
- Date: 21 Jul 92 20:45:04 GMT
- References: <1992Jul16.192430.27521@msuinfo.cl.msu.edu>
- Sender: news@csn.org
- Organization: Colorado SuperNet, Inc.
- Lines: 16
-
- In alt.gopher you write:
-
- >Can anyone explain why gopherd 1.01, when running as gopherls, would want
- >to write to a file descriptor of 0, instead of 1 or 2?
-
- Ooops, my mistake.
-
- The cleaned up code does the following:
-
- listdir(fileno(stdout), "/");
-
- Thanks!--
- | Paul Lindner | lindner@boombox.micro.umn.edu | Slipping into madness
- | | Computer & Information Services | is good for the sake
- | GopherMaster | University of Minnesota | of comparision.
- ///// / / / /////// / / / / / / / / //// / / / / / / / /
-