Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MPI_Abort can theorically fail. Add a call to exit() to ensure that the program...
[simgrid.git] / teshsuite / smpi / mpich3-test / pt2pt / rqfreeb.c
index 1a6eab1..2d752ca 100644 (file)
@@ -27,6 +27,7 @@ int main( int argc, char *argv[] )
        if (dest > r) r = dest;
        fprintf( stderr, "This program requires %d processes\n", r-1 );
        MPI_Abort( MPI_COMM_WORLD, 1 );
+        exit(1);
     }
 
     if (rank == src) {