X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9cc88bb9ed0a8974e524f67198984a1e03cb00b0..b1f526e4157e5a965b4773291c81fc71de27de25:/src/mc/mc_liveness.c diff --git a/src/mc/mc_liveness.c b/src/mc/mc_liveness.c index 6c35380468..82481dcde1 100644 --- a/src/mc/mc_liveness.c +++ b/src/mc/mc_liveness.c @@ -64,8 +64,8 @@ int create_dump(int pair) if(WIFSIGNALED(status) && WCOREDUMP(status)){ printf("got a core dump\n"); char *core_name = malloc(20); - sprintf(core_name,"mv core core_%d", pair); - system((char *)core_name); + sprintf(core_name,"core_%d", pair); + rename("core", core_name); free(core_name); } }