[Info-vax] Check if a process will auto-terminate
Stephen Davies
noone at nowhere.com
Tue Apr 28 07:23:52 EDT 2009
Hi,
Please could someone tell me if there is a simple way that a command file
can determine if it running in a process that will terminate as soon as the
command file exits.
eg, tell the difference between this:
$ spawn @CMD
and this:
$ spawn
$ @CMD
The reason is that I have updated a command file to spawn a subprocess then
exit but some legacy calls to the command file already spawn the command
file, resulting in the sub-sub-process terminating almost immediately
because its parent terminates.
My current work-around is to use f$getjpi("", "LOGINTIM") and see if the
process is less than a second old but I hope there's a better solution.
Thanks in advance,
Steve D.
More information about the Info-vax
mailing list