<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 19, 2015 at 10:00 PM, Niklas Hambüchen <span dir="ltr"><<a href="mailto:mail@nh2.me" target="_blank">mail@nh2.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":p1" class="a3s" style="overflow:hidden">Note: on Windows, if the process was a shell command created by<br>
createProcess with shell, or created by runCommand or<br>
runInteractiveCommand, then terminateProcess will only terminate the<br>
shell, not the command itself. On Unix systems, both processes are in a<br>
process group and will be terminated together.</div></blockquote></div><br>Last I checked, that was just wrong on Unix; it kills only the shell. This is probably because someone did not consider that most modern shells support job control, and therefore start commands in their own independent process groups. (Or assumed that this does not happen with "sh -c"; I would have to test specific shells --- and versions! various bash versions can behave quite differently and often have bugs lurking in the dark corners --- to see if this applies.)<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>