From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!seismo!mcvax!cernvax!paul From: paul@cernvax.UUCP Newsgroups: comp.lang.ada Subject: Aborting a busy task (Vax Ada) Message-ID: <443@cernvax.UUCP> Date: Fri, 27-Feb-87 03:29:07 EST Article-I.D.: cernvax.443 Posted: Fri Feb 27 03:29:07 1987 Date-Received: Wed, 4-Mar-87 18:40:28 EST Reply-To: paul@cernvax.UUCP () Distribution: world Organization: CERN European Laboratory for Particle Physics, CH-1211 Geneva, Switzerland List-Id: Suiciding a program containing a task which is busy doing a GET. How do I do it? According to the manual, Vax Ada implements synchronous aborts, ie my ABORT statement will not take effect until the target task executes one of the statements listed in ARM 9.10 It looks as if my task will not see the abort until after it's completed it's current GET. Unfortunately, the GET might never come. (Incidentally, that's why I invented the sub-task in the first place, I wanted a "non-committed" read, ie only read if there's something to be read immediately. So I buried it in a sub-task.) So, assuming my Main program (task) falls over, will the VMS process now sit around for ever and a day waiting for the sub-task? How can I terminate the whole program (in a portable way)? Is sending a dummy message for it to read sensible? It feels odd... There again, I suppose I can always use sys$exit, but that's not quite portable! Any comments anyone? Paul Burkimsher, Cern, Geneva, Switzerland paul@crvxdev (Bitnet) ...!mcvax!cernvax!vxdev!paul (UUCP) paul%cern.vxdev@uk.ac.ean-relay (Janet)