From: Stéphane Graber Date: Wed, 2 Jan 2013 18:47:18 +0000 (-0500) Subject: kill -s expects the signal name without SIG X-Git-Tag: lxc-0.9.0.alpha3~1^2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4199da3061d02e9b5087faa16dd875d4bfeb3989;p=thirdparty%2Flxc.git kill -s expects the signal name without SIG 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 --- 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