Tweak VG_(exit).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9951 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_libcassert.c b/coregrind/m_libcassert.c
index 3185d8b..8dbded3 100644
--- a/coregrind/m_libcassert.c
+++ b/coregrind/m_libcassert.c
@@ -99,14 +99,15 @@
/* Pull down the entire world */
void VG_(exit)( Int status )
{
-# if defined(VGO_linux)
+#if defined(VGO_linux)
(void)VG_(do_syscall1)(__NR_exit_group, status );
-# endif
+#elif defined(VGO_aix5)
(void)VG_(do_syscall1)(__NR_exit, status );
- /* Why are we still alive here? */
+#else
+# error Unknown OS
+#endif
/*NOTREACHED*/
- *(volatile Int *)0 = 'x';
- vg_assert(2+2 == 5);
+ VG_(core_panic)("VG_(exit) didn't work?");
}
// Print the scheduler status.