Mercurial > hg > aboriginal
comparison build.sh @ 719:428df726cf7f
Have system-image.sh do its own setsid variant so when it does dienow() it can kill all its own backgrounded processes, but won't take down the parent shell that ran it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 24 Apr 2009 22:33:31 -0500 |
parents | 20ba34b54140 |
children | 759adf5a0fe9 |
comparison
equal
deleted
inserted
replaced
718:f63119db5afa | 719:428df726cf7f |
---|---|
41 | 41 |
42 if [ -f "build/system-image-$i.tar.bz2" ] | 42 if [ -f "build/system-image-$i.tar.bz2" ] |
43 then | 43 then |
44 echo "=== Skipping system-image-$i (already there)" | 44 echo "=== Skipping system-image-$i (already there)" |
45 else | 45 else |
46 # We need to run this in a new session because the error handling behavior | 46 time ./system-image.sh $i || exit 1 |
47 # of this kills everything in its current session, which can kill a wrapper | |
48 # shell running us if we're not careful. | |
49 time setsid ./system-image.sh $i || exit 1 | |
50 fi | 47 fi |
51 done | 48 done |