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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8893269a4640c798 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-01 10:15:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!torn!snoopy.risq.qc.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: terminate applications References: <3F17DF3C.4080204@noplace.com> <3F196773.2060809@noplace.com> <3F19F86C.9050808@attbi.com> <3F1A772F.9060708@noplace.com> <3F1AD6FB.8080806@attbi.com> <3F1BD666.6040506@noplace.com> <3F1C4DA6.3070405@attbi.com> <3F1D29E8.60107@noplace.com> <3F1D2FDC.1070402@noplace.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <81xWa.6321$mv6.1060816@news20.bellglobal.com> Date: Fri, 01 Aug 2003 13:00:58 -0400 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1059757252 198.96.223.163 (Fri, 01 Aug 2003 13:00:52 EDT) NNTP-Posting-Date: Fri, 01 Aug 2003 13:00:52 EDT Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:41128 Date: 2003-08-01T13:00:58-04:00 List-Id: Larry Kilgallen wrote: > In article , "Warren W. Gay VE3WWG" writes: >>"Larry Kilgallen" wrote in message news:q5jLYypXp6Yg@eisner.encompasserve.org... >>>In article , "Warren W. Gay VE3WWG" writes: ... >>>So which of those should be chosen for operating systems on which either >>>set of semantics is supported by the operating system ? Certainly that >>>should be part of the definition, rather than having two separate Ada >>>implementations do it differently on the same operating system. Even >>>a loose "do what you can" definition is inadequate in that situation. >> >>You'll need to provide some VMS specifics that demonstrate a real >>problem. Otherwise, I fail to see a problem. > > > From http://h71000.www7.hp.com/doc/731FINAL/4527/4527pro_037.html#jun_194 > > Do you want to call user mode exit handlers ? > Do you want to call supervisor mode exit handlers ? > Do you want to call executive mode exit handlers ? > Do you want to call kernel mode exit handlers ? > > I would expect the only exit handlers provided by Ada implementations > would be in user mode, but I cannot guarantee that for all possible > Ada implementations. RMS exit handlers are mostly in executive > mode, although I suppose some might be in kernel mode. How much > consistency do you want in the files the program had open? (Hint, > it can depend on whether you were doing asynchronous output or > using write-behind.) Sorry for the delay, in getting back to this.. I would suggest that you would take the exit that does _NOT_ invoke any user mode exit handlers. Otherwise, you would back to doing the equivalent of a normal "kill" with the possibility that the C atexit() or Ada finalization could hang, and still not accomplish the "dirty deed, done dirt cheap." I don't know, but it would seem almost like VMS might do the atexit() processing using this "user mode exit". (is this true?) I would expect, that you wouldn't want to tamper with the rest. File integrity.. Who cares? Remember, the objective is just to "kill that dang thing". The OP did ask for any other guarantees except that the process and its threads be terminated (preferably without taking the whole O/S with it). The programmer is using this API because he has weighed the risk of doing so, and has decided that it is going to be done. If not, then he gets what he deserves ;-) Insisting on file integrity is to add policy to the original request. > From http://h71000.www7.hp.com/doc/731FINAL/4527/4527pro_050.html#jun_266 > > Do you really want to stop the process, or just the program ? > Returning to DCL would be desired by most users who had invoked > a program interactively, and by many who are running a program > in a batch job or other command procedure environment. > > Or would you like to write a process dump file for later analysis ? Again, asking for "dumps" is adding to the original requirements and so this is a non-issue, as OP clearly did not request for a dump (admitedly, in a debugging environment, this might be useful). Not being familiar with VMS, I cannot answer the other question, since there seems to be an implied difference between program and process. What does a "program" mean in a VMS environment? Under UNIX/Windoze, we talk of processes and threads. What is DCL? -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg