[uClinux-dev] A debug in ddns3-client
goon863
goon863 at 163.com
Sat Aug 4 05:35:46 EDT 2007
hi , There is a debug in ddns3-client.While the ddns3-client run for several days,there will be a few ddns3-client pids.I track the code,and find it because of the recv.It run to the recv line and do not run forword.I am new to socket,and i don't know how to solve it.could you please tell me how to do? Thanks. int
ddns3_sockio_read(int sock, char *buf, int len) {
int ret;
char err[100]; MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__)); //**********************************
ret = recv(sock, buf, len, 0);
MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__)); //**********************************
if(ret < 0){
//perror("read()");
MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__)); //**********************************
ddns3_sockio_error(err,100);
MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__)); //**********************************
fprintf(stderr, "recv(): %s\n", err);
}
MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__)); //**********************************
return ret;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20070804/fb03dcd3/attachment.html
More information about the uClinux-dev
mailing list