home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / emacs / bug / 1607 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.0 KB  |  46 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!hplsg.hpl.hp.com!steve
  3. From: steve@hplsg.hpl.hp.com (Steve Greenbaum)
  4. Subject: Fix to "unexec" in unexhp9k800.c
  5. Message-ID: <9301061859.AA05580@hplsg.hpl.hp.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 6 Jan 1993 02:59:14 GMT
  10. Approved: bug-gnu-emacs@prep.ai.mit.edu
  11. Lines: 33
  12.  
  13. Problem
  14. -------
  15.  
  16. The end of function "unexec" in file "src/unexhp9k800.c" incorrectly exit's
  17. instead of return'ing.  This leads to builds not dumping the "emacs-18.xx"
  18. file because the unexec exits the build right after dumping "xemacs".
  19.  
  20. Here are the last few lines of the original (incorrect) function:
  21.  
  22.     close(new);
  23.     exit(0);
  24.   }
  25.  
  26. Solution
  27. --------
  28. The correct version replaces "exit(0)" with "return 0", as follows:
  29.  
  30.     close(new);
  31.     return 0;
  32.   }
  33.  
  34. The effected line is number 110 in the 18.59 source.
  35.  
  36. -Steve
  37.  
  38.   Steve Greenbaum
  39.   HP Labs, 26U-12
  40.   3500 Deer Creek Road
  41.   Palo Alto, CA  94304
  42.  
  43.   (415) 857-5181
  44.   greenbaum@hplabs.hpl.hp.com
  45.  
  46.