Convert VG_(exitcode), a global variable, into a local variable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2436 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_include.h b/coregrind/vg_include.h
index 652506d..9043e52 100644
--- a/coregrind/vg_include.h
+++ b/coregrind/vg_include.h
@@ -980,7 +980,7 @@
/* The scheduler. */
-extern VgSchedReturnCode VG_(scheduler) ( void );
+extern VgSchedReturnCode VG_(scheduler) ( Int* exit_code );
extern void VG_(scheduler_init) ( void );
@@ -1474,11 +1474,6 @@
/* This is the ThreadId of the last thread the scheduler ran. */
extern ThreadId VG_(last_run_tid);
-/* This is the argument to __NR_exit() supplied by the first thread to
- call that syscall. We eventually pass that to __NR_exit() for
- real. */
-extern Int VG_(exitcode);
-
/* If we're doing the default action of a fatal signal */
extern jmp_buf VG_(fatal_signal_jmpbuf);
extern Bool VG_(fatal_signal_set); /* jmp_buf is valid */