Mercurial > hg > aboriginal
changeset 342:66d43620e29f
Background the distcc daemon ourselves so we can kill it at the end.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 01 Jun 2008 13:50:43 -0500 |
parents | e1c34ff45cd3 |
children | c468353dd75b |
files | sources/toys/run-with-distcc.sh |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/toys/run-with-distcc.sh Sat May 31 19:51:08 2008 -0500 +++ b/sources/toys/run-with-distcc.sh Sun Jun 01 13:50:43 2008 -0500 @@ -12,6 +12,9 @@ # Run the distcc daemon on the host system with $PATH restricted to the # cross compiler's symlinks. +# Note that we tell it --no-detach and background it oursleves so jobs -p can +# find it later to kill it after the emulator exits. + DCC="$(which distccd)" if [ -z "$DCC" ] then @@ -20,7 +23,7 @@ fi PATH="$(readlink -f "$1/distcc")" "$DCC" --listen 127.0.0.1 --log-stderr \ - --log-level error --daemon -a 127.0.0.1 2>distccd.log # --no-detach + --log-level error --daemon -a 127.0.0.1 --no-detach 2>distccd.log & # Prepare some environment variables for run-qemu.sh @@ -34,4 +37,5 @@ # Cleanup afterwards: Kill child processes we started (I.E. distccd). +echo kill `jobs -p`