comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: terminate applications
Date: Fri, 01 Aug 2003 14:17:17 -0400
Date: 2003-08-01T14:17:17-04:00	[thread overview]
Message-ID: <H8yWa.10610$Cx4.1029460@news20.bellglobal.com> (raw)
In-Reply-To: <FwGJRynuWYUt@eisner.encompasserve.org>

Larry Kilgallen wrote:
> In article <81xWa.6321$mv6.1060816@news20.bellglobal.com>, "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca> writes:
>>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 am not an expert in C, but I was talking about a user mode exit
> handler, not a user mode exit (which I infer would be something
> like a "user exit" on MVS).

My memory of MVS is much too hazy now ;-)

>>I would expect, that you wouldn't want to tamper with the rest.
>>
>>File integrity.. Who cares?
> 
> Those two statements are in conflict.

How so? I mean, I don't want to start disconnecting parts of
the kernel.  The objective is to effectively terminate the
process and its threads (at least traditional processes and
threads. So these are independant points, and devoid of conflict.

That is:

  - Don't change the kernel settings (exits)
  - Don't worry about file integrity (nobody cares in this case,
    or they wouldn't take such a nasty exit).

>>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).
> 
> Lots of Original Posters here ask for the simple ability to have the
> Ada operators have exactly the same syntax as C operators. 

That may be, but not in this "halt" discussion.

> I was
> under the impression the goal was to consider a feature that would be
> generally useful, rather than one that exactly matched someone's initial
> wording in a newsgroup post.

Everyone keeps trying to complicate a very simple requirement:

  - terminate with prejudice:
     - process
     - and all accompanying threads
     - no other guarantees requested or desired

if I may paraphrase MDC's request.

Remember we are discussing a suggested way of doing something in
a more-or-less standard way, that doesn't currently exist.

Your heart is in the right place: I mean, it might be desireable
to have an option to select a dump or not. The danger however, is
that as soon as you start adding more "nice to haves", you can
complicate the request to the point where it cannot be done
portably, or without general agreement.

If you asked the OP if he would have to have a "dump" capability
in order to proceed, I expect that he would dump that requirement
in order to get the most important thing -- namely that which I
paraphrased above.

So yes, it is good to be general, but don't kill by insisting
on too much. ;-)

>>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.
> 
> I will take your word for it that file integrity is not a big deal
> in some environments, but there are others where it is.

Absolutely! But if file integrity is a concern, then you should
not be doing this kind of thing; or at least you should be
certain that your writes are flushed, and files closed before you
pull the plug.

>>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?
> 
> A process is an execution environment.  For instance, when you log
> into a VMS system a process is created.  DCL (Digital Command Language)
> commands you issue successively run various programs, by default in the
> context of that process.

Are you saying that the environment + command run in one address
space together? It sounds a bit like DOS command interpreter and
executable living in the same address space together.

> In some environments it is quite rude to terminate a process (rather than
> just the program running within that process) since the very next step
> (in a command procedure being run in that process, for example) may be
> to indicate an error condition to the operator on duty, or in more primitive
> environments, email any error indication to some other human being.

Agreed, but I would suggest that it is also rude
to leave a hung process and threads running, eating 100% of the CPU
with no way to terminate it.

It is also rude to the user, to expect him to individually kill
off 20 threads every time the program fails to terminate ;-)

Finally, it is ruder still to run a program with no way to
cancel it 8-)

-- 
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg




  reply	other threads:[~2003-08-01 18:17 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-18  9:36 terminate applications christoph.grein
2003-07-18 10:54 ` Jeffrey Creem
2003-07-18 11:51   ` Marin David Condic
2003-07-18 13:26     ` Nick Roberts
2003-07-18 15:18     ` Jeffrey Creem
2003-07-19 15:44       ` Marin David Condic
2003-07-20  2:03         ` Robert I. Eachus
2003-07-20 11:04           ` Marin David Condic
2003-07-20 17:53             ` Robert I. Eachus
2003-07-21 12:02               ` Marin David Condic
2003-07-21 20:31                 ` Robert I. Eachus
2003-07-22 12:11                   ` Marin David Condic
2003-07-22 12:26                     ` Arnaud Charlet
2003-07-22 12:36                       ` Marin David Condic
2003-07-22 13:23                         ` Arnaud Charlet
2003-07-22 23:23                           ` Marin David Condic
2003-07-22 23:46                             ` Samuel Tardieu
2003-07-23 12:22                               ` Marin David Condic
2003-07-23 22:17                                 ` Randy Brukardt
2003-07-24  1:47                                   ` Hyman Rosen
2003-07-24  3:36                                     ` tmoran
2003-07-24  3:44                                       ` Hyman Rosen
2003-07-24  8:02                                         ` Samuel Tardieu
2003-07-24 19:54                                         ` Randy Brukardt
2003-07-24  7:45                                     ` Dmitry A. Kazakov
2003-07-24 14:54                                       ` Warren W. Gay VE3WWG
2003-07-24 15:46                                         ` Dmitry A. Kazakov
2003-07-26  2:58                                           ` Warren W. Gay VE3WWG
2003-07-28  8:17                                             ` Dmitry A. Kazakov
2003-07-28 21:08                                               ` Warren W. Gay VE3WWG
2003-07-29 10:42                                                 ` Marin David Condic
2003-07-29 13:47                                                   ` Hyman Rosen
2003-07-29 17:04                                                     ` Warren W. Gay VE3WWG
2003-07-24 12:01                                     ` Marin David Condic
2003-07-24 20:12                                     ` Randy Brukardt
2003-07-24 23:11                                       ` Robert I. Eachus
2003-07-26 12:52                                         ` Marin David Condic
2003-07-26  3:28                                       ` Warren W. Gay VE3WWG
2003-07-24 11:51                                   ` Marin David Condic
2003-07-24 20:32                                     ` Randy Brukardt
2003-07-26  3:16                                       ` Warren W. Gay VE3WWG
2003-07-26 13:16                                         ` Marin David Condic
2003-07-26 15:23                                           ` Nick Roberts
2003-07-26 15:48                                             ` Warren W. Gay VE3WWG
2003-07-27 11:36                                             ` Marin David Condic
2003-07-26 19:52                                           ` rleif
2003-07-26 13:01                                       ` Marin David Condic
2003-07-24 14:46                                   ` Warren W. Gay VE3WWG
2003-07-24 18:50                                     ` tmoran
2003-07-26 13:21                                       ` Marin David Condic
2003-07-23  4:02                             ` Robert I. Eachus
2003-07-23 12:28                               ` Marin David Condic
2003-07-24 16:06                                 ` Robert I. Eachus
2003-07-26 13:33                         ` Larry Kilgallen
     [not found]                         ` <Pine.LNX.4.44.0307221518190.26977-10000Organization: LJK Software <$TwrUBtoh25l@eisner.encompasserve.org>
2003-07-26 15:07                           ` Warren W. Gay VE3WWG
2003-07-27 11:43                           ` Marin David Condic
2003-07-26 17:27                         ` Larry Kilgallen
     [not found]                         ` <Pine.LNX.4.44.0307221518190.26977-10000Organization: LJK Software <etldVqgp8sE1@eisner.encompasserve.org>
2003-07-26 20:18                           ` Warren W. Gay VE3WWG
2003-07-26 20:24                         ` Larry Kilgallen
     [not found]                         ` <Pine.LNX.4.44.0307221518190.26977-10000Organization: LJK Software <q5jLYypXp6Yg@eisner.encompasserve.org>
2003-07-27 21:52                           ` Warren W. Gay VE3WWG
2003-07-28  2:45                         ` Larry Kilgallen
2003-08-01 17:00                           ` Warren W. Gay VE3WWG
2003-08-01 17:56                         ` Larry Kilgallen
2003-08-01 18:17                           ` Warren W. Gay VE3WWG [this message]
2003-08-01 18:48                         ` Larry Kilgallen
2003-07-22 12:59                       ` Lutz Donnerhacke
2003-07-22  5:16                 ` Randy Brukardt
2003-07-22 12:02                   ` Marin David Condic
2003-07-22 14:45                     ` Nick Roberts
2003-07-23  1:08 ` Dave Thompson
  -- strict thread matches above, loose matches on Subject: below --
2003-07-17 10:39 Riccardo
2003-07-17 19:54 ` Nick Roberts
2003-07-17 20:55   ` Mark A. Biggar
2003-07-17 22:44     ` Nick Roberts
2003-07-18  3:55 ` sk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox