This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Any problem ?
- From: ratheesh kannoth <ratheesh dot ksz at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 25 Mar 2011 20:47:18 +0530
- Subject: [ECOS] Any problem ?
Is there any prob with below code segment in eCos ?
{
fd_set rd_fds;
FD_ZERO(&rd_fds);
while (1) {
timeout.tv_sec = 1;
timeout.tv_usec = 0;
if (select(0, &rd_fds, NULL, NULL, &timeout) < 0) {
printf("\n Error \n");
sleep(1);
continue;
}
printf("\n Success \n");
}
}
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss