home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4571 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: doc.ic.ac.uk!not-for-mail
  2. From: mdf@doc.ic.ac.uk (Martin Frost)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Strange guru
  5. Date: 1 Mar 1996 13:03:28 -0000
  6. Organization: Dept. of Computing, Imperial College, University of London, UK.
  7. Distribution: world
  8. Message-ID: <4h6sj0$l59@oak43.doc.ic.ac.uk>
  9. References: <4gscv0$ovd@brachio.zrz.TU-Berlin.DE> <4h3ivo$966@hasle.sn.no>
  10. Reply-To: mdf@doc.ic.ac.uk (Martin Frost)
  11. NNTP-Posting-Host: oak43.doc.ic.ac.uk
  12. X-Newsreader: mxrn 6.18-23
  13.  
  14.  
  15. In article <4h3ivo$966@hasle.sn.no>, jakob.rivertz@aftenposten.no (Jakob Rivertz) writes:
  16.  
  17. >Do a GetMsg() on process->pr_MsgPort when your program starts. If
  18. >it returns non-NULL, then hold onto this message until your code can
  19. >exit. Then reply the message. WB will then UnLoadSeg() your code.
  20.  
  21. What is documented in the RKMs as required is to check proc->pr_CLI and if
  22. this is zero then do a WaitPort(proc->pr_MsgPort) and then the GetMsg().
  23. At present this works without the WaitPort(), but it could be needed in the
  24. future. Also, you need to reply the message in a Forbid(), and I put a
  25. Wait(0L) after the ReplyMsg(), just in case.
  26.  
  27. Martin
  28.