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