changeset 908:2af4fe56095b

Make setsid work if system-image.sh run standalone.
author Rob Landley <rob@landley.net>
date Tue, 01 Dec 2009 05:18:35 -0600
parents 890aa372ee30
children 1720e1d988db
files system-image.sh
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/system-image.sh	Sat Nov 28 23:39:36 2009 -0600
+++ b/system-image.sh	Tue Dec 01 05:18:35 2009 -0600
@@ -31,6 +31,7 @@
   # so stdin's signal handling doesn't get moved to the new session id, so
   # ctrl-c won't work.  This little C program does it right.
 
+  mkdir -p "$WORK" &&
   $CC -s -Os "$SOURCES/toys/mysetsid.c" -o "$WORK/mysetsid" &&
   exec "$WORK/mysetsid" "$0" "$@"
 fi