Commit edff86c7 authored by Taddeüs Kroes's avatar Taddeüs Kroes

- Removed extra error check.

parent 02d103c1
...@@ -35,11 +35,6 @@ static void gup(FILE * log1, FILE * log2, int pipe_id[2], int myNumber) ...@@ -35,11 +35,6 @@ static void gup(FILE * log1, FILE * log2, int pipe_id[2], int myNumber)
/* Read next character from pipe */ /* Read next character from pipe */
if( read(pipe_id[0], &c, 1) <= 0 ) if( read(pipe_id[0], &c, 1) <= 0 )
{ {
if( errno == EINTR )
{
continue;
}
/* Error while reading from the pipe, exit */ /* Error while reading from the pipe, exit */
fprintf(log1, "Child %d read from pipe with error " fprintf(log1, "Child %d read from pipe with error "
"and exited\n", myNumber); "and exited\n", myNumber);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment