From 1d24b2eb6e37ae012da564267f99e4bc84cc4a6b Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 19 May 2009 05:28:43 +0000 Subject: [PATCH] Tweak VG_(exit). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9951 --- coregrind/m_libcassert.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/coregrind/m_libcassert.c b/coregrind/m_libcassert.c index 3185d8b159..8dbded319e 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. -- 2.47.3