Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* How do I force a VMS process to make a "clean" exit?
@ 1994-06-09 14:18 Mike Titus
  1994-06-10 13:02 ` Tim Llewellyn
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Titus @ 1994-06-09 14:18 UTC (permalink / raw)



I want to be able to stop a process under VMS from the command line,
  but I want to have it call its exit handlers so that I don't leave
  "artifacts" (e.g.--open files, locks); I think sending the process
  a $FORCEX will do the trick.

Does the "STOP <process>" command do that, or should I issue some other
  command? The documentation in the VMS User's Manual isn't clear on
  this one. If it doesn't, does someone have some code in C to do this?

Please reply to either comp.sys.dec or comp.os.vms.

Thanks for the help.
(I usually work in a 4GL,
  and haven't written much "real code" under VMS--MACRO forever! ;-) )
-- 
               * * * * * * * * * * * * * * * * *
Mike Titus, Programmer     * Internet  <mike.titus@dallas.sil.org>
SIL                        * Fax: (214) 709-3387
7500 West Camp Wisdom Road * Voice: (214) 709-2400
Dallas, Texas  75236-5699  *    BOOT/OPERATOR/DEVICE=CCA0: !Coffee Cup



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How do I force a VMS process to make a "clean" exit?
  1994-06-09 14:18 How do I force a VMS process to make a "clean" exit? Mike Titus
@ 1994-06-10 13:02 ` Tim Llewellyn
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Llewellyn @ 1994-06-10 13:02 UTC (permalink / raw)



In article <1994Jun9.091801.262@sil.org>, titus@sil.org (Mike Titus) writes:
|>Xref: bsmail comp.sys.dec:15829 comp.os.vms:50966
|>
|>
|>I want to be able to stop a process under VMS from the command line,
|>  but I want to have it call its exit handlers so that I don't leave
|>  "artifacts" (e.g.--open files, locks); I think sending the process
|>  a $FORCEX will do the trick.
|>
|>Does the "STOP <process>" command do that, or should I issue some other
|>  command? The documentation in the VMS User's Manual isn't clear on
|>  this one. If it doesn't, does someone have some code in C to do this?
|>

DCL stop does a $DELPRC, no a $FORCEX, so it is NOT what you want.
You need to write a program (or get one someone else wrote) to 
forcexit a process.

|>Mike Titus, Programmer     * Internet  <mike.titus@dallas.sil.org>

|>
|>
-- 
-----------------------------------------------------+------------------+
Tim Llewellyn - OpenVMS, Soukous and Cricket Addict  |Hey, and get wise |
Physicist Programmer, Bristol Uni Particle Physics.  | to the sounds of |
HEPNET/SPAN 19716::TJL Internet tjl@siva.bris.ac.uk  |   Africa,seen.   |
I speak for me and noone else OK (and I might even   | Soukous  Makossa |
change my mind sometimes!-)                          | N'Dagga  Mbalax..|
-----------------------------------------------------+------------------+
Unix : A toy for those who enjoy re-inventing wheels,  or have no choice.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-06-10 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-09 14:18 How do I force a VMS process to make a "clean" exit? Mike Titus
1994-06-10 13:02 ` Tim Llewellyn

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