int count = 1;
struct timeval tv={.tv_sec=5,.tv_usec=0};
- while (count < 100000) {
+ while (count < 1000000) {
fd_set readSet;
int res;
int nlines=0;
//printf("((0))");fflush(stdout);
while ((fd_in = open(top_in_file, O_WRONLY| O_NONBLOCK)) < 0) {
fprintf(stderr, "Waiting for %s (%s)\n", top_in_file,strerror(errno));
- sleep (1);
+ usleep (50);
}
- printf("%d open\n",fd_in);
//printf("(1)");
if ((flag = fcntl(fd_out, F_GETFL)) == -1) {