Process not spawning as a child
My ffmpeg process spawns, but it's not as a child of the main console application
the process works perfectly and the main app can read the ffmpeg process fine, but I want it to be a child of the main application instead of it having a separate process on it's own
6 Replies
@MrScopes wdym "not a child"?
it's a new task instead of under the main app
so if I close the main program it won't stop it without me killing it manually
ah
and in task manager it's not under the app
like this
There's not really a real process hierarchy in windows. The best you get is that each process maintains the PID of the process that creates it, but that is used for nothing.
If you want processes to die in response to their parents, you need to use a Job.