http://www.cis.temple.edu/~ingargio/...s/signals.html
bytesread = read(input_fd, buf, BLKSIZE);
if (bytesread < 0)
if (errno == EINTR)
printf("The read was interrupted. You can try to read again\n");
else
printf("Error in read. Don't know what to do about it\n");
NOW I KNOW WHAT IT IS AND WHY IT OCCAR, BUT I DON'T KNOW HOW TO CATCH THE SIGNAL AND IGNORE IT .OR JUST SET THE SA_RESTART.