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

Joseph Huber joseph.huber at NIRWANA.web.de
Tue Apr 28 16:11:40 EDT 2009


sapienzaf schrieb:
> On Apr 28, 2:20 pm, Joseph Huber <joseph.hu... at NIRWANA.web.de> wrote:
>> But there is no way I know of to differentiate if the parent process has
>> done a plain "SPAWN" or a "SPAWN @CMD".
>> But I repeat: why is it important to know ?
> 
> Because that's what the original question was asking.
> 
>> The only case where it matters is to avoid "SPAWN/NOWAIT @CMD".
> 
> The original question made absolutely no reference to SPAWN/NOWAIT.
> Therefore, all your comments related to /NOWAIT are irrelevant.

The original question:
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.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This happens ONLY if SPAWN/NOWAIT was used, otherwise the parent does 
NOT terminate before @CMD exits!

-- 

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



More information about the Info-vax mailing list