]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Tweak VG_(exit).
authorNicholas Nethercote <njn@valgrind.org>
Tue, 19 May 2009 05:28:43 +0000 (05:28 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 19 May 2009 05:28:43 +0000 (05:28 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9951

coregrind/m_libcassert.c

index 3185d8b159253072820f9174f8c426502b1e9945..8dbded319e70487800b5da9fb69d36e0fe623389 100644 (file)
 /* 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.