diff options
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/toaster | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index eb83e9afaa..e82df9b80b 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster | |||
@@ -126,16 +126,20 @@ stop_system() | |||
126 | kill `cat ${BUILDDIR}/.toasterui.pid` 2>/dev/null | 126 | kill `cat ${BUILDDIR}/.toasterui.pid` 2>/dev/null |
127 | rm ${BUILDDIR}/.toasterui.pid | 127 | rm ${BUILDDIR}/.toasterui.pid |
128 | fi | 128 | fi |
129 | BBSERVER=0.0.0.0:-1 bitbake -m | 129 | stop_bitbake |
130 | unset BBSERVER | ||
131 | webserverKillAll | 130 | webserverKillAll |
132 | # force stop any misbehaving bitbake server | ||
133 | lsof bitbake.lock | awk '{print $2}' | grep "[0-9]\+" | xargs -n1 -r kill | ||
134 | trap - SIGHUP | 131 | trap - SIGHUP |
135 | #trap - SIGCHLD | 132 | #trap - SIGCHLD |
136 | INSTOPSYSTEM=0 | 133 | INSTOPSYSTEM=0 |
137 | } | 134 | } |
138 | 135 | ||
136 | stop_bitbake() { | ||
137 | BBSERVER=0.0.0.0:-1 bitbake -m | ||
138 | unset BBSERVER | ||
139 | # force stop any misbehaving bitbake server | ||
140 | lsof bitbake.lock | awk '{print $2}' | grep "[0-9]\+" | xargs -n1 -r kill | ||
141 | } | ||
142 | |||
139 | check_pidbyfile() { | 143 | check_pidbyfile() { |
140 | [ -e $1 ] && kill -0 `cat $1` 2>/dev/null | 144 | [ -e $1 ] && kill -0 `cat $1` 2>/dev/null |
141 | } | 145 | } |