home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 13052 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.4 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!uvaarpa!adastra!mbs
  2. From: mbs@adastra.cvl.va.us (Michael B. Smith)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: GNU C and ixemul.library
  5. Distribution: world
  6. Message-ID: <mbs.0xqj@adastra.cvl.va.us>
  7. X-NewsSoftware: GRn 1.16f (beta) by Mike Schwartz & Michael B. Smith
  8. Date: 3 Sep 92 18:21:15 EDT
  9. Organization: Private UUCP Node
  10. Lines: 21
  11.  
  12. In article <SIE.92Sep3132123@introitus.fulcrum.bt.co.uk> sie@fulcrum.bt.co.uk (Simon Raybould) writes:
  13. > The problem is when a command is executed by bash, I get an "EMT trap"
  14. > and bash exits returning to the CLI prompt. Not long later the amiga
  15. > will usually crash.
  16. >
  17. > Any ideas as to what is causing this would help. I think this is an
  18. > Emulator trap.
  19.  
  20. The ixemul.library fork() is NOT a real fork(), in the Unix/POSIX sense of
  21. the word. Under AmigaDOS with ixemul, a fork() leaves pointers pointing to
  22. the same piece of memory -- which is shared with the parent. Obviously, if
  23. you haven't made your own local copies of the memory, you get garbage.
  24.  
  25. The fork() is really only a vfork().
  26.  
  27. I ported the BSD "ash", and Markus has ported "pdksh". The amount of work
  28. required to make this happen is non-trivial. You might take a look at the
  29. pdksh source (since he has released it) for some pointers (pun intended).
  30. --
  31.   //   Michael B. Smith
  32. \X/    mbs@adastra.cvl.va.us  -or-  uunet.uu.net!virginia.edu!adastra!mbs
  33.