I have some code which spawns a process when a struct is created and then waits for the process to finish when dropped. Is there a way for the child processes to be orphaned? Do I need to do anything to account for that or be aware of any concerns with that? I’ve dealt with this in other languages but I have no idea what the implications are in Rust.
I know in other languages you have to sometimes so something explicit to get them to close the child process with the parent. Is there anything like that in Rust? Is the child process guaranteed to end with the parent?