From df970f4cb0566d6f5dd7cd0e1bf37d0b19adbeeb Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 13 Nov 2014 03:24:33 -0500 Subject: [PATCH] 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. --- xCAT-server/sbin/xcatd | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 6fe1d1c1a..597ac84e1 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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";