Newsgroups: comp.sys.atari.st.tech Path: utzoo!utgpu!watserv1!watmath!mks.com!ant From: ant@mks.com (Anthony Howe) Subject: Return codes & how to kill() Date: Fri, 19 Apr 91 16:45:31 GMT Message-ID: <1991Apr19.164531.22350@mks.com> Organization: Mortice Kern Systems, Waterloo, Ontario, CANADA Distribution: na Sender: ant@mks.com (Anthony Howe) I've been hunting high and low in the DevDocs for information on how a parent process finds the return code of the child process. Now I know Pexec() returns a value when it executes a program, but I only use Pexec() to load, and I initiate the program through separate means. Q: What I want to know is the return code passed back in D0, on the stack, or in some global system location? Is the return code available at the time of the call to the Terminate Handler? I'm trying to make mods to the Sozobon Debugger to handle printing the return values before it exits. Q: If I've used Pexec() to load a program and I'm handling the execution of parts of that program. How can I tell the system to terminate that child process. Basically I want a kill() or a ptrace(PT_KILL_PID, child, 0, 0) so that I can add a restart command. -ant -- __ "So many pedestrians _ . .-|- / _\ . . |_ _. _ _ . . So little time." (_\ |\| | |(_/ |\/| |\ _\ o (_ (_) |\/| bumber sticker Mortice Kern Systems Inc. 35 King St. N., Waterloo, Ontario, Canada, N2L 6W9