changeset 354:d96741481221

User Mode Linux found a new way to break: now when it panics, it sends a kill signal to its process group, taking down the shell script that ran it. Add a little terminal control black magic to make said signal miss its target.
author Rob Landley <rob@landley.net>
date Thu, 03 Jul 2008 03:57:43 -0500
parents e89a2760e6cb
children f6e1d29086c1
files package-mini-native.sh
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/package-mini-native.sh	Wed Jul 02 23:17:53 2008 -0500
+++ b/package-mini-native.sh	Thu Jul 03 03:57:43 2008 -0500
@@ -48,8 +48,10 @@
 umount /dev
 sync
 EOF
+
 chmod +x ${WORK}/uml-package.sh &&
-linux rootfstype=hostfs rw quiet ARCH=${ARCH} PATH=/bin:/usr/bin:/sbin:/usr/sbin init="${WORK}/uml-package.sh" || dienow
+echo before &&
+(setsid linux rootfstype=hostfs rw quiet ARCH=${ARCH} PATH=/bin:/usr/bin:/sbin:/usr/sbin init="${WORK}/uml-package.sh"; stty cooked echo)
 
 # Provide qemu's common command line options between architectures.  The lack
 # of ending quotes on -append is intentional, callers append more kernel