From 2f3e40c5d8dfe7cc43511b95149f8d28f663ed1d Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Tue, 18 Nov 2014 15:02:17 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/bin/toaster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/bin') 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() fi if [ $retval -eq 0 ]; then echo "Starting webserver" - python $BBBASEDIR/lib/toaster/manage.py runserver "0.0.0.0:$WEB_PORT" ${BUILDDIR}/toaster_web.log 2>&1 & echo $! >${BUILDDIR}/.toastermain.pid + python $BBBASEDIR/lib/toaster/manage.py runserver "0.0.0.0:$WEB_PORT" ${BUILDDIR}/toaster_web_$$.log 2>&1 & echo $! >${BUILDDIR}/.toastermain.pid sleep 1 if ! cat "${BUILDDIR}/.toastermain.pid" | xargs -I{} kill -0 {} ; then retval=1 -- cgit v1.2.3-54-g00ecf