summaryrefslogtreecommitdiffstats
path: root/bin/toaster
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2014-11-18 15:02:17 +0000
committerAlexandru DAMIAN <alexandru.damian@intel.com>2014-11-20 15:43:56 +0000
commitd4a47bc84f762666a847f1152cc2e75c9ef36092 (patch)
tree29928ce7974db42af58b3e5d64413696ba6eb9ac /bin/toaster
parent40d2ae0723de2bf5fee343faafb4afda40546839 (diff)
downloadbitbake-contrib-d4a47bc84f762666a847f1152cc2e75c9ef36092.tar.gz
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Diffstat (limited to 'bin/toaster')
-rwxr-xr-xbin/toaster2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/toaster b/bin/toaster
index 4c6ac5ac4..75f31d032 100755
--- a/bin/toaster
+++ b/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" </dev/null >${BUILDDIR}/toaster_web.log 2>&1 & echo $! >${BUILDDIR}/.toastermain.pid
+ 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
sleep 1
if ! cat "${BUILDDIR}/.toastermain.pid" | xargs -I{} kill -0 {} ; then
retval=1