From 4199da3061d02e9b5087faa16dd875d4bfeb3989 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Wed, 2 Jan 2013 13:47:18 -0500 Subject: [PATCH] kill -s expects the signal name without SIG MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The previous lxc-shutdown change replaced 'kill SIG' by 'kill -s SIG'. Although this works with busybox where it was tested, this doesn't actually work with all kill implementations. Some requiring just the signal name without the prefix. This changes "-s SIG" by just "-s ". Tested with busybox and standard kill. Signed-off-by: Stéphane Graber --- src/lxc/lxc-shutdown.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/lxc-shutdown.in b/src/lxc/lxc-shutdown.in index ad8395be7..edf735e54 100644 --- a/src/lxc/lxc-shutdown.in +++ b/src/lxc/lxc-shutdown.in @@ -118,10 +118,10 @@ if [ "$pid" = "-1" ]; then fi if [ $reboot -eq 1 ]; then - kill -s SIGINT $pid + kill -s INT $pid exit 0 else - kill -s SIGPWR $pid + kill -s PWR $pid fi if [ $dowait -eq 0 ]; then -- 2.47.2