Make absolutely sure subprocess is not killed #14
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ryze/ff2mpv-rust#14
Loading…
Reference in a new issue
No description provided.
Delete branch "pr/process_group"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I added code to set the process group. The docs mention it, even though it looks like it's not needed.
Also added a platform specific dependency to windows-rs, rather than hard-coding CREATE_BREAKAWAY_FROM_JOB.
Thanks for the PR!
I've tested it myself and it doesn't seem to make any difference on my system, but it's good to include it anyway.
I think it would be better to extract that into a function.
Might as well include that in use
By
command: &mut Command
I assume you meanstd::process::Command
and notff2mpv_rust::command::Command
. The function call would look like:Is that what you mean?
IMO, the current approach is cleaner. It also removes the need for
#[cfg(not(any(unix, windows)))]
Yes exactly!
There is no need to have it, other platforms are not supported at the moment anyway. if anything the compilation would just fail in such case, so it is safe.
Looks good! Thanks!