Alex Rivera | Logout

Start new process, without being a child of the spawning process

Asked 2011-12-08T16:37:45.683
53

How would I go about starting a new process without it being the child of the calling process.

Example:

Main Program (Caller.exe)

process.start("file.exe")

Image:

enter image description here

Edit
Report

1 Answer

28

If the spawning process (parent) ends before the spawned process (child) does, then the parent-child chain is broken. To make use of this, you'd have to use an intermediate stub-process like so:

Caller.exe → Stub.exe → File.exe.

Here Stub.exe is simple launcher program that ends just after starting File.exe.

answered 2011-12-08T16:57:49.460

Your Answer