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

Re: [bluetooth-dev] sdp_server



Hi
here since we are calling vfork  parent is suspended
un-til the child makes a call to execve() or an exit
(either by a call to  _exit() or abnormally) , so
child will run, since it execvp pppd, it will go to
error only the execvp fails.
Hope this would help.
Regards
Kugan

--- USHA R <ushar@xxxxxxx.net> wrote:
> Hi,
> 	In the sdp_server function, there is a statement
> like this:
> 		if(!(sdpsrv_pid = vfork()))
> 		 {
> 		    execvp(SDPSRV_CMD, args);
> 		    fprintf(stderr, "%s:no such file or
> directory\n", SDPSRV_CMD);
> 		     _exit(0);
> 		}
> 1. Now, the SDPSRV_CMD is executed only if the
> control is in the child
> thread. What happens when the control goes to the
> parent thread.
> 2. OK, suppose the control goes to the child and
> SDPSRV_CMD is excuted, then
> why the printing of error message?
> 
> Please clarify. Thanks in advance.
> 
> Regards
> -----------------------------
> Usha Kowshik
> Manager
> CG Smith Software Limited
> 'Kushal Arcade'
> 1-A, Peenya Industrial Area, 2nd Phase,
> Bangalore-560058, Karnataka, India
> Tel :080 - 8391663  Ext. 214
> E-mail : ushar@xxxxxxx.net
> --------------------------------------------
> 
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe bluetooth-dev" in
> the body of a message to majordomo@xxxxxxx.com


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com