cmd
cmd copied to clipboard
Add Windows SysProcAttr create new process group
When programs on Windows are terminated the child processes will not be killed anymore.
Coverage remained the same at 100.0% when pulling ead1c478d70b5b3d85eff82749ea63c000c301c0 on ClintonCollins:windows-new-process-groups into 9ca92cd8e65cfdb846037e59f53f5f731d75bc63 on go-cmd:master.
Killing the whole process group was by design (to avoid leaving or waiting on child processes). But there are probably cases when one wants/needs to leave the child procs. Maybe Options.BeforeExec gives you and other users ability to set this as needed?