Path: utzoo!attcan!uunet!mcvax!enea!kth!draken!G@epsilon.stacken.kth.se
From: G@epsilon.stacken.kth.se (Gunnar Nordmark)
Newsgroups: comp.sys.amiga
Subject: I Want my ZombieMsg Back!!!
Summary: ARP ASyncRun never seems to return my ZombieMsg
Message-ID: <421@draken.nada.kth.se>
Date: 22 Jun 88 10:11:38 GMT
Sender: news@nada.kth.se
Reply-To: G@epsilon.stacken.kth.se (Gunnar Nordmark)
Organization: The Royal Inst. of Techn., Stockholm
Lines: 22

Last night I rebooted my machine X times and couldn't figure out what was
wrong with my program, it just hang.  After many hours I located the problem
to a WaitPort() on a so called ZombieMsg that the ARP ASyncRun is supposed to
return when the child process dies. I have set up the message with a reply
port and put a pointer to it in pcb_LastGasp :-) but ASyncRun just ignores it.

I need this message BADLY because I've implented the UNIX* functions
popen() and pclose() - the death message generates a software interrupt when
it arrives at the replyport - then the interrupt handler breakes the pipe -
and finally the function pclose() can return. (It should not return until
the child is terminated)

The mecanism works great if I PutMsg() the ZombieMsg directly to the replyport
*instead* of calling ASyncRun(), so the ONLY thing I need for this functions
to fly is ASyncRun() actually returning my message, but alas, it doesn't.

(1, 2 3...)  HEEEEELLP!!!

SNAIL: Gunnar Nordmark          VOICE: (+46) 8 - 755 42 52
       Nora strand 5
       S-182 34 DANDERYD        EMAIL: G@epsilon.stacken.kth.se
       SWEDEN                          nordmark@vaxkab.sunet.se