[android-porting] Re: [android-porting]About RILD system

2009-05-19 Thread Song Johnny
to be more, I wonder service layer will keep connecting the rild socket so that the rild daemon listen thread will accept and build the connection, but did that way work inefficiently? On Tue, May 19, 2009 at 2:15 PM, Song Johnny wrote: > Hi, > > Now I am looking RILD system in Android. I have

[android-porting] Re: [android-porting]About RILD system

2009-05-19 Thread Michael Trimarchi
Song Johnny wrote: > to be more, I wonder service layer will keep connecting the rild > socket so that the rild daemon listen thread will accept and build the > connection, but did that way work inefficiently? > > On Tue, May 19, 2009 at 2:15 PM, Song Johnny > > wrote

[android-porting] Re: [android-porting]About RILD system

2009-05-20 Thread Johnny Song
On Wed, May 20, 2009 at 2:08 PM, Michael Trimarchi < trimar...@gandalf.sssup.it> wrote: > > Song Johnny wrote: > > to be more, I wonder service layer will keep connecting the rild > > socket so that the rild daemon listen thread will accept and build the > > connection, but did that way work ineff

[android-porting] Re: [android-porting]About RILD system

2009-05-21 Thread Mark Wang
yes, I also have the same question as Ayi. Anyone have the answer? On Tue, May 19, 2009 at 8:05 PM, Johnny Song wrote: > > > On Wed, May 20, 2009 at 2:08 PM, Michael Trimarchi < > trimar...@gandalf.sssup.it> wrote: > >> >> Song Johnny wrote: >> > to be more, I wonder service layer will keep con

[android-porting] Re: [android-porting]About RILD system

2009-05-22 Thread Brian Liu
The command socket (s_fdCommand) will be closed only when there is any exception like EINTR or end of stream (e.g. service layer close this socket). The sequence is like this: 1. Bootup 1.1 Init process create UNIX domain socket on /dev/socket/rild and then fork RILD according to init.rc 1.2 RILD

[android-porting] Re: [android-porting]About RILD system

2009-05-24 Thread Johnny Song
Hi, Brian and Mike Thanks for your help, I think I get through my confusion now! I mistake the code will run into the piece of code bellow for granted. Yes, only the error condition that should happen. if (ret == 0 || !(errno == EAGAIN || errno == EINTR)) { /* fatal error or end-of-