diff options
| author | Belen Barros Pena <belen.barros.pena@linux.intel.com> | 2014-11-18 15:02:17 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-21 11:49:23 +0000 |
| commit | 2f3e40c5d8dfe7cc43511b95149f8d28f663ed1d (patch) | |
| tree | d4fb7b0c3c90c279785c6d49a807e58d4267ed4c | |
| parent | c09e56168ea5a9e4ff3e7f38d7da79e5d883021b (diff) | |
| download | poky-2f3e40c5d8dfe7cc43511b95149f8d28f663ed1d.tar.gz | |
bitbake: toaster: fix file name collision
When toaster is used by multiple users on the same machine,
it is possible that files in /tmp have a name race.
This patch makes sure that the files have unique names.
(Bitbake rev: d4a47bc84f762666a847f1152cc2e75c9ef36092)
Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | bitbake/bin/toaster | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 4c6ac5ac40..75f31d032e 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster | |||
| @@ -69,7 +69,7 @@ function webserverStartAll() | |||
| 69 | fi | 69 | fi |
| 70 | if [ $retval -eq 0 ]; then | 70 | if [ $retval -eq 0 ]; then |
| 71 | echo "Starting webserver" | 71 | echo "Starting webserver" |
| 72 | python $BBBASEDIR/lib/toaster/manage.py runserver "0.0.0.0:$WEB_PORT" </dev/null >${BUILDDIR}/toaster_web.log 2>&1 & echo $! >${BUILDDIR}/.toastermain.pid | 72 | python $BBBASEDIR/lib/toaster/manage.py runserver "0.0.0.0:$WEB_PORT" </dev/null >${BUILDDIR}/toaster_web_$$.log 2>&1 & echo $! >${BUILDDIR}/.toastermain.pid |
| 73 | sleep 1 | 73 | sleep 1 |
| 74 | if ! cat "${BUILDDIR}/.toastermain.pid" | xargs -I{} kill -0 {} ; then | 74 | if ! cat "${BUILDDIR}/.toastermain.pid" | xargs -I{} kill -0 {} ; then |
| 75 | retval=1 | 75 | retval=1 |
