🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #925

Fix to "unexec" in unexhp9k800.c

#925
From: Steve Greenbaum
Date: Wed, 06 Jan 1993 02:59
32 lines
1086 bytes
Problem
-------

The end of function "unexec" in file "src/unexhp9k800.c" incorrectly exit's
instead of return'ing.  This leads to builds not dumping the "emacs-18.xx"
file because the unexec exits the build right after dumping "xemacs".

Here are the last few lines of the original (incorrect) function:

    close(new);
    exit(0);
  }

Solution
--------
The correct version replaces "exit(0)" with "return 0", as follows:

    close(new);
    return 0;
  }

The effected line is number 110 in the 18.59 source.

-Steve

  Steve Greenbaum
  HP Labs, 26U-12
  3500 Deer Creek Road
  Palo Alto, CA  94304

  (415) 857-5181
  greenbaum@hplabs.hpl.hp.com
Technical Details
Message-ID: <9301061859.AA05580@hplsg.hpl.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hplsg.hpl.hp.com!steve

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hplsg.hpl.hp.com!steve
From: steve@hplsg.hpl.hp.com (Steve Greenbaum)
Subject: Fix to "unexec" in unexhp9k800.c
Message-ID: <9301061859.AA05580@hplsg.hpl.hp.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 6 Jan 1993 02:59:14 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 33