Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!ucsfcgl!socrates.ucsf.edu!conrad From: conrad@socrates.ucsf.edu (Conrad Huang%CGL) Newsgroups: comp.sources.games.bugs Subject: hunt2, patch #1 Message-ID: <11210@cgl.ucsf.EDU> Date: 29 Oct 88 00:00:00 GMT Sender: daemon@cgl.ucsf.edu Reply-To: conrad@socrates.ucsf.edu (Conrad Huang%CGL) Organization: UCSF Computer Graphics Lab Lines: 54 Patch #: 1 Priority: HIGH Subject: nothing mode doesn't work on Vaxen From: conrad@cgl.ucsf.edu Description: As usual, posting to the net immediately causes a bug to manifest itself. The "nothing" mode described in README does not work on Vaxen because of a four-year old bug. Why it works on the Suns, I have no idea. The start_driver() routine incorrectly close the Socket file descriptor in INTERNET mode. It should only do so when running with UNIX domain sockets. Fix: Apply the following patch to hunt.c *** /tmp/,RCSt1022282 Fri Oct 28 16:50:25 1988 --- hunt.c Fri Oct 28 16:49:02 1988 *************** *** 581,586 } if (procid == 0) { (void) signal(SIGINT, SIG_IGN); (void) close(Socket); if (use_port == NULL) execl(Driver, "HUNT", (char *) NULL); --- 581,587 ----- } if (procid == 0) { (void) signal(SIGINT, SIG_IGN); + # ifndef INTERNET (void) close(Socket); # endif if (use_port == NULL) *************** *** 582,587 if (procid == 0) { (void) signal(SIGINT, SIG_IGN); (void) close(Socket); if (use_port == NULL) execl(Driver, "HUNT", (char *) NULL); else --- 583,589 ----- (void) signal(SIGINT, SIG_IGN); # ifndef INTERNET (void) close(Socket); + # endif if (use_port == NULL) execl(Driver, "HUNT", (char *) NULL); else