[Info-vax] Check if a process will auto-terminate

Joseph Huber joseph.huber at NIRWANA.web.de
Tue Apr 28 13:21:19 EDT 2009


Stephen Davies schrieb:
> "Joseph Huber" <joseph.huber at NOSPAM.web.de> wrote in message 
> news:gt7468$1rf2$1 at gwdu112.gwdg.de...
>> Stephen Davies wrote:
>>
>>> 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.
>>>
>> Uh no, I would check if the executing proc has a master process:
> 
> That does not distinguish this:
> $ spawn @CMD
> 
> from this:
> $ spawn
> $ @CMD
Of course it does, the second @CMD executes in the master process, the 
first one is a subprocess of a different master process.

The real problem IMHO is with SPAWN/NOWAIT if used in a subprocess.

-- 

  Joseph Huber   - http://www.huber-joseph.de



More information about the Info-vax mailing list