games@tekred.TEK.COM (11/08/88)
Submitted by: conrad@socrates.ucsf.edu (Conrad Huang%CGL) Comp.sources.games: Volume 5, Issue 84 Archive-name: hunt2/Patch1 [This was posted on comp.sources.games.bugs. Since this is an official patch from the author, I have also posted it here so that it will be archived (the bugs group is not archived). -br] #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh <file", e.g.. If this archive is complete, you # will see the following message at the end: # "End of shell archive." # Contents: Patch01 # Wrapped by billr@tekred on Mon Nov 7 17:32:57 1988 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f Patch01 -a "${1}" != "-c" ; then echo shar: Will not over-write existing file \"Patch01\" else echo shar: Extracting \"Patch01\" \(1341 characters\) sed "s/^X//" >Patch01 <<'END_OF_Patch01' XPatch #: 1 XPriority: HIGH XSubject: nothing mode doesn't work on Vaxen XFrom: conrad@cgl.ucsf.edu X XDescription: X As usual, posting to the net immediately causes a bug to X manifest itself. The "nothing" mode described in README does X not work on Vaxen because of a four-year old bug. Why it X works on the Suns, I have no idea. X X The start_driver() routine incorrectly close the Socket file X descriptor in INTERNET mode. It should only do so when running X with UNIX domain sockets. X XFix: X Apply the following patch to hunt.c X X*** /tmp/,RCSt1022282 Fri Oct 28 16:50:25 1988 X--- hunt.c Fri Oct 28 16:49:02 1988 X*************** X*** 581,586 X } X if (procid == 0) { X (void) signal(SIGINT, SIG_IGN); X (void) close(Socket); X if (use_port == NULL) X execl(Driver, "HUNT", (char *) NULL); X X--- 581,587 ----- X } X if (procid == 0) { X (void) signal(SIGINT, SIG_IGN); X+ # ifndef INTERNET X (void) close(Socket); X # endif X if (use_port == NULL) X*************** X*** 582,587 X if (procid == 0) { X (void) signal(SIGINT, SIG_IGN); X (void) close(Socket); X if (use_port == NULL) X execl(Driver, "HUNT", (char *) NULL); X else X X--- 583,589 ----- X (void) signal(SIGINT, SIG_IGN); X # ifndef INTERNET X (void) close(Socket); X+ # endif X if (use_port == NULL) X execl(Driver, "HUNT", (char *) NULL); X else X X END_OF_Patch01 if test 1341 -ne `wc -c <Patch01`; then echo shar: \"Patch01\" unpacked with wrong size! fi # end of overwriting check fi echo shar: End of shell archive. exit 0