--- projects/pjob/pjob.c 2006/01/25 19:57:12 1.4 +++ projects/pjob/pjob.c 2006/01/25 20:05:52 1.5 @@ -168,7 +168,7 @@ void process_child(gpointer data, gpointer user_data){ poll(fds, fdssize, -1); /* For stdout and stderr see if there is any data, and read it */ for(x=0; x<2; x++){ - if((fds[x].revents & POLLIN) == 0){ + if((fds[x].revents & POLLIN) != 0){ /* We have data to read */ g_io_channel_read_line(sout[x], &readbuf, &rdatasize, NULL, NULL); if(rdatasize > 0){