Whamcloud - gitweb
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git] / lustre / tests / write_append_truncate.c
index 7bfb121..30a95e5 100644 (file)
@@ -49,7 +49,7 @@ void usage(char *prog)
 }
 
 /* Print process rank, loop count, message, and exit (i.e. a fatal error) */
-void rprintf(int rank, int loop, const char *fmt, ...)
+int rprintf(int rank, int loop, const char *fmt, ...)
 {
         va_list       ap;
 
@@ -59,7 +59,8 @@ void rprintf(int rank, int loop, const char *fmt, ...)
 
         vprintf(fmt, ap);
 
-        MPI_Abort(MPI_COMM_WORLD, 1);
+        MPI_Finalize();
+        exit(1);
 }
 
 int main(int argc, char *argv[])