Commit 543db800 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen

Merge branch 'master' of ssh://vo20.nl/git/uva

parents 820e6db6 a3256cb4
...@@ -12,5 +12,5 @@ $(PROG): $(OFILES) ...@@ -12,5 +12,5 @@ $(PROG): $(OFILES)
$(CC) $(CFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
$(RM) $(OFILES) $(PROG) $(RM) $(OFILES) $(PROG) child.log*
...@@ -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