defect 4384: fix the issue that copycds command cannot be ctrl+c cleanly. The root cause was INT signal was not received by the plugin process after it sends out from relay_fds. The fix is to send both INT and TERM. TERM can be received in this case.

This commit is contained in:
daniceexi 2014-11-13 03:24:33 -05:00
parent 834ae798ca
commit df970f4cb0

View File

@ -2410,6 +2410,7 @@ sub relay_fds { #Relays file descriptors from pipes to children to the SSL socke
foreach (keys %plugin_children) {
print "Sending INT to $_\n";
kill 2, $_;
kill 15, $_;
}
foreach my $cin ($fds->handles) {
print $cin "die\n";