Path: utzoo!attcan!uunet!cs.utexas.edu!usc!apple!oliveb!amiga!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: AmigaDos Process structure questions Message-ID: <12347@cbmvax.commodore.com> Date: 6 Jun 90 05:06:53 GMT References: <2006@mindlink.UUCP> Reply-To: jesup@cbmvax (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 22 In article <2006@mindlink.UUCP> a275@mindlink.UUCP (Travers Naran) writes: >I was trying to write a replacement for the system() command so I can write >front ends that don't require using 'run'. Anyways, the program works except >for one thing: The Exit() command. I advise not doing this if you don't have to. The main reason is that you're HIGHLY likely to break in 2.0. Even Bill Hawes has had a few problems with this, and he knows dos really well. If you must do this, use the arp.library, which will work much better, and when the 2.0 update comes out arp will probably call the new System() call directly. > What value should pr_ReturnAddr be set to if I want all Exits to return >back to my calling program? It's not real simple, and anything I tell you is likely to trip you up in the future. Manx fexec makes it even more complicated. The real solution is in 2.0 (System()). -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup Common phrase heard at Amiga Devcon '89: "It's in there!"