diff options
author | Ian Lynagh <igloo@earth.li> | 2010-10-28 13:48:54 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-10-28 13:48:54 +0000 |
commit | 723da2ed96068632ede8d1e8514dd02bbe1336ea (patch) | |
tree | 834f53b5f30de23b414970a9a3c4e0eef7801e2a /rts/Hpc.c | |
parent | fb9d21af24d076b12abb9e22251aa327f82e8ea8 (diff) | |
download | haskell-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) { |