🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #1320

Re: Help -- dos.library gurus when process is killed!

#1320
From: Matt Dillon
Date: Mon, 18 Sep 1989 07:29
29 lines
1760 bytes
:For some time now I have tried to implement a  kill-mechanism  similar
:to the one used in UN*X on dear old Amy.  I  am  using  the  exception
:mechanism provided by Exec.
:   Everything works fine, I can send the "kill"-signal to the process,
:the process suspends execution, enters the exception handling  routine
:and exits -- or gurus. It *ALWAYS*  gurus  if  the  process  has  been
:doing I/O when it was killed. But it is not really the process  itself
:that gurus, but dos.library: it  reports  an  AN_AsyncPkt  (unexpected
:packet received).
:   Up to now I have tried several  things  to  prevent  this  kind  of
:behaviour, but so far I haven't been successful. What  is  it  I  have
:overlooked? I would greatly appreciate any pointers on how to get  rid
:of this problem.

	Because the current implementation of the send-wait packet function
    for DOS only allows once packet to be pending for a process at a time.
    When you enter the exception handler, interrupting an IO operation, and
    then try to do another IO operation on top of it, *poof*.

	Um, I would give up.  There is no way to do it properly asynchronously.

	Not only DOS, but you can't go interrupt arbitrary library calls
    in the middle of their execution!  Think of a graphics.library call
    that gets interrupted!

					-Matt


	
Technical Details
Message-ID: <8909180729.AA29722@postgres.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon
From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Help -- dos.library gurus when process is killed!
Message-ID: <8909180729.AA29722@postgres.Berkeley.EDU>
Date: 18 Sep 89 07:29:40 GMT
Sender: usenet@ucbvax.BERKELEY.EDU
Lines: 29