[project @ 2001-01-16 11:54:25 by simonmar]
[ghc-hetmet.git] / ghc / rts / Main.c
index 564e74f..f66ecdf 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Main.c,v 1.23 2000/04/11 16:49:20 sewardj Exp $
+ * $Id: Main.c,v 1.25 2000/06/25 17:25:42 panne Exp $
  *
  * (c) The GHC Team 1998-2000
  *
@@ -112,7 +112,7 @@ int main(int argc, char *argv[])
       exit_status = EXIT_DEADLOCK;
       break;
     case Killed:
-      prog_belch("main thread killed");
+      prog_belch("main thread exited (uncaught exception)");
       exit_status = EXIT_KILLED;
       break;
     case Interrupted:
@@ -126,5 +126,6 @@ int main(int argc, char *argv[])
       barf("main thread completed with invalid status");
     }
     shutdownHaskellAndExit(exit_status);
+    return 0; /* never reached, keep gcc -Wall happy */
 }
 # endif /* BATCH_MODE */