[comp.sys.amiga.tech] Kill a PROCESS?

himpel@uni-paderborn.de (Jens Gelhar) (12/12/90)

I am working on a Debugger and have got a litle (?) Problem:

Is it possible to kill a DOS Process that was created with CreateProc()?
I tried to kill its Exec task by using RemTask on it's task Structure,
but it seems that an "empty" DOS Process still lives (and it's stack
memory doesn't get deallocated). Is there an other way?

I made up a very brutal method (but did not try it :-) ): use SPReg from
the task structure and set the return address on the stack to the
Exit() function (only when the Process is in running/ready state, of 
course). Do you think that might work?

CU,

Jens.


-- 
   /   /  .  ___    ___   ___   /     * The Himpel Software Systems Company
  /---/  /  / / /  /  /  /__/  /      * Jens Gelhar - himpel@uni-paderborn.de
 /   /  /  / / /  /__/  /___  /_      * Support for Kick-Ass + Kick-Pascal 
Life! Don't talk / to me about life!  * >>>   THE HIMPIRE STRIKES BACK   <<<