]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix 'trap' in lxc-clone
authorDaniel Baumann <daniel.baumann@progress-technologies.net>
Thu, 28 Jun 2012 14:13:01 +0000 (09:13 -0500)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Tue, 31 Jul 2012 14:01:26 +0000 (16:01 +0200)
Fix signal names in lxc-clone trap.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-clone.in

index c7413f218362c939bb0d06243db59cc8e7ec7a0a..4a9f581bf1ec0100c28caeff6bd9407ee049472e 100644 (file)
@@ -165,7 +165,7 @@ cleanup() {
     echo "$(basename $0): aborted" >&2
     exit 1
 }
-trap cleanup SIGHUP SIGINT SIGTERM
+trap cleanup HUP INT TERM
 
 mkdir -p $lxc_path/$lxc_new
 hostname=$lxc_new