Path: utzoo!utgpu!attcan!uunet!tektronix!tekgen!tekred!games From: games@tekred.TEK.COM Newsgroups: comp.sources.games Subject: v05i084: hunt2 - multi-player maze exploration (V2) [BSD only], Patch1 Message-ID: <3249@tekred.TEK.COM> Date: 8 Nov 88 01:37:19 GMT Sender: billr@tekred.TEK.COM Lines: 87 Approved: billr@saab.CNA.TEK.COM 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 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