cmd icon indicating copy to clipboard operation
cmd copied to clipboard

Add Windows SysProcAttr create new process group

Open ClintonCollins opened this issue 4 years ago • 2 comments

When programs on Windows are terminated the child processes will not be killed anymore.

ClintonCollins avatar Apr 24 '21 19:04 ClintonCollins

Coverage Status

Coverage remained the same at 100.0% when pulling ead1c478d70b5b3d85eff82749ea63c000c301c0 on ClintonCollins:windows-new-process-groups into 9ca92cd8e65cfdb846037e59f53f5f731d75bc63 on go-cmd:master.

coveralls avatar Apr 24 '21 19:04 coveralls

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?

daniel-nichter avatar Mar 13 '22 15:03 daniel-nichter