[Info-vax] Check if a process will auto-terminate
Stephen Davies
noone at nowhere.com
Wed Apr 29 06:02:50 EDT 2009
"Joseph Huber" <joseph.huber at NIRWANA.web.de> wrote in message
news:gt7ntt$65s$1 at online.de...
> 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!
Within CMD there is a SPAWN/NOWAIT.
Therefore the problem happens with both "SPAWN @CMD" and "SPAWN/NOWAIT @CMD"
However, the legacy calls do use "SPAWN/NOWAIT @CMD"
So if there is a way to only detect this, it might still be useful.
More information about the Info-vax
mailing list