[Toaster] toaster under mac osx.

Damian, Alexandru alexandru.damian at intel.com
Tue Mar 31 09:58:42 PDT 2015


Patch here - sorry for the delay, I was caught up in the release.

https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=adamian/20150331_refactoring&id=d23c6c5c44e6f51e43c5e23a9ee04c8a43622b46

On Wed, Mar 18, 2015 at 8:27 AM, Alexander Kanevskiy <kad at kad.name> wrote:

> On Tue, Mar 17, 2015 at 3:29 PM, Damian, Alexandru <
> alexandru.damian at intel.com> wrote:
>
>> Cool, thank you !
>>
>> Alex
>>
>> On Tue, Mar 17, 2015 at 11:50 AM, Kanevskiy, Alexander <
>> alexander.kanevskiy at intel.com> wrote:
>>
>>> Alex, one liner fix :)
>>>
>>> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
>>> index 7907b57..ceff747 100755
>>> --- a/bitbake/bin/toaster
>>> +++ b/bitbake/bin/toaster
>>> @@ -37,7 +37,7 @@ function webserverKillAll()
>>>                         kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
>>>                         sleep 1;
>>>                         # Kill processes if they are still running - may
>>> happen in interactive shells
>>> -                       ps fux | grep "python.*manage.py runserver" | awk
>>> '{print $2}' | xargs kill
>>> +                       pkill -f "python.*manage.py runserver" -U $UID
>>>
>>
> small correction, -U parameter should be before pattern.
> so, should be replaced with:
>
> pkill -U $UID -f "python.*manage.py runserver"
>
>
>
>>                 done;
>>>                 rm  ${pidfile}
>>>                 fi
>>>
>>>
>>> or without bash-ism:
>>>
>>> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
>>> index 7907b57..ceff747 100755
>>> --- a/bitbake/bin/toaster
>>> +++ b/bitbake/bin/toaster
>>> @@ -37,7 +37,7 @@ function webserverKillAll()
>>>                         kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
>>>                         sleep 1;
>>>                         # Kill processes if they are still running - may
>>> happen in interactive shells
>>> -                       ps fux | grep "python.*manage.py runserver" | awk
>>> '{print $2}' | xargs kill
>>> +                       ps ux | grep "python.*manage.py runserver" | awk
>>> '{print $2}' | xargs kill
>>>                 done;
>>>                 rm  ${pidfile}
>>>                 fi
>>>
>>>
>>>
>>>
>>> --
>>> Best regards, Alexander Kanevskiy.
>>>
>>
> --
> br, Alexander Kanevskiy
>



-- 
Alex Damian
Yocto Project
SSG / OTC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20150331/01cbe172/attachment.html>


More information about the toaster mailing list