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

[bluetooth-dev] sdp_server

	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);
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.

Usha Kowshik
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