From: Nicholas Nethercote Date: Tue, 19 May 2009 05:28:43 +0000 (+0000) Subject: Tweak VG_(exit). X-Git-Tag: svn/VALGRIND_3_5_0~670 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d24b2eb6e37ae012da564267f99e4bc84cc4a6b;p=thirdparty%2Fvalgrind.git Tweak VG_(exit). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9951 --- 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.