X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c09a81f5beb799e8233d9f6e5eaa1843fe23f3da..fe53701228db0390daa50be847aadc572dd21e71:/tools/tesh2/src/reader.c diff --git a/tools/tesh2/src/reader.c b/tools/tesh2/src/reader.c index 29b1c9555f..4b962a7f8a 100644 --- a/tools/tesh2/src/reader.c +++ b/tools/tesh2/src/reader.c @@ -15,6 +15,7 @@ reader_new(command_t command) reader->command = command; reader->broken_pipe = 0; reader->failed = 0; + reader->done = 0; reader->started = xbt_os_sem_init(0); @@ -127,9 +128,7 @@ reader_start_routine(void* p) command_handle_failure(command, csr_read_failure); } - reader->broken_pipe = 1; - - /*printf("the reader of the command %p is ended\n",command);*/ + reader->done = 1; return NULL; }