Re: the method about start rygel



Dear Jens,,

Thanks a lot for your opinion!
I will do verification in advance!

Best Regards,
Soho

2012/11/1 Jens Georg <mail jensge org>:
> On Thu, Nov 01, 2012 at 03:34:54PM +0800, Soho Soho123 wrote:
>> Dear Jen,
>>
>> I find the issue:
>> when I try to use system function to start rygel,
>> then there is only 1 process from the ourput of "ps".
>> the rygel process will not accept any signal, like terminate
>> I can not use "kill -TERM $rygel-pid"
>
> That is actually a bug you found there.
>
>>
>> but if I start rygel in terminal by the command "rygel -g 5 -n br0", then
>> there are 2 threads from ps output.
>> then is this condition , I can use kill -TERM $rygel-pid to tell rygel stop.
>> Do you have idea about the difference between 2 kind of method?
>
> & is a special character for the shell, meaning it's bash that then does the
> backgrounding. When you try tostart rygel with system("rygel -n br0&") you make
> it listen on a network device called "br0&". And apparently there's an issue
> that the unix signal handlers are not set up properly if there's no network
> interface to listen on or something like that. I've filed this as
>
> https://bugzilla.gnome.org/show_bug.cgi?id=687325
>
> If you want to launch rygel as a background process, you have to either fork
> and exec in the child or use DBus activation.
>
>>
>> thanks!
>>
>> Best Regards,
>> Soho
>>
>> 2012/11/1 Soho Soho123 <soho123 2012 gmail com>:
>> > Dear Jens,
>> >
>> > I got the result about :
>> > when I try to use system function in c code to start rygel with
>> > command "rygel -g 5 -n br0 &",
>> > then I will see there is ONLY ONE process from output of ps
>> >
>> > for example :
>> > in c code , I use the system function :
>> > system("rygel -g 5 -n br0&"),
>> > then there is only one process when ps output
>> >
>> > But if I just  use the command in terminal "rygel -g 5 -n br0&"
>> > then try to get process list by ps,
>> > I can see there are 2 threads,
>> >
>> > do you have idea about  this phenomenon?
>> >
>> > it seems both case workable, but I am not sure whether any  side-effect?
>> >
>> >
>> > Best Regards,
>> > Soho
>>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]