summaryrefslogtreecommitdiff
path: root/rts/Hpc.c
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-10-28 13:48:54 +0000
committerIan Lynagh <igloo@earth.li>2010-10-28 13:48:54 +0000
commit723da2ed96068632ede8d1e8514dd02bbe1336ea (patch)
tree834f53b5f30de23b414970a9a3c4e0eef7801e2a /rts/Hpc.c
parentfb9d21af24d076b12abb9e22251aa327f82e8ea8 (diff)
downloadhaskell-723da2ed96068632ede8d1e8514dd02bbe1336ea.tar.gz
Replace some exit(n) calls with stg_exit(n); fixes trac #4445
Also changed exitcode of -1 to 1 in hpc.
Diffstat (limited to 'rts/Hpc.c')
-rw-r--r--rts/Hpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Hpc.c b/rts/Hpc.c
index 00b5a3d6c0..81c802cea2 100644
--- a/rts/Hpc.c
+++ b/rts/Hpc.c
@@ -51,7 +51,7 @@ failure(char *msg) {
} else {
fprintf(stderr,"(perhaps remove .tix file?)\n");
}
- exit(-1);
+ stg_exit(1);
}
static int init_open(FILE *file) {
@@ -235,7 +235,7 @@ hs_hpc_module(char *modName,
fprintf(stderr,"in module '%s'\n",tmpModule->modName);
failure("module mismatch with .tix/.mix file hash number");
fprintf(stderr,"(perhaps remove %s ?)\n",tixFilename);
- exit(-1);
+ stg_exit(1);
}
for(i=0;i < modCount;i++) {