From b0e93427c584515453f22c1a035610691e576ad7 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 1 Oct 2002 17:00:50 +0000 Subject: [PATCH] Pass master_pid as an argument. git-svn-id: https://svn.dealii.org/trunk@6578 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/contrib/hsl/source/detached_ma27.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deal.II/contrib/hsl/source/detached_ma27.cc b/deal.II/contrib/hsl/source/detached_ma27.cc index 0294d883a0..a06486023c 100644 --- a/deal.II/contrib/hsl/source/detached_ma27.cc +++ b/deal.II/contrib/hsl/source/detached_ma27.cc @@ -41,8 +41,6 @@ #include -pid_t master_pid; - namespace CommunicationsLog { @@ -134,7 +132,7 @@ void die (const std::string &text, const T1 t1, const T2 t2) * about the parent process, so it is apparently gone */ extern "C" -void monitor_parent_liveness () +void monitor_parent_liveness (const pid_t master_pid) { #ifdef HAVE_STD_STRINGSTREAM std::ostringstream s; @@ -223,13 +221,14 @@ int main () // of the master process, so that // we can check whether it is still // alive or not... + pid_t master_pid; get (&master_pid, 1, "master_pid"); // ...and start off a thread that // actually checks that Threads::ThreadManager thread_manager; Threads::spawn (thread_manager, Threads::encapsulate (&monitor_parent_liveness) - .collect_args()); + .collect_args(master_pid)); // then go into the action loop... unsigned int N, NZ, NSTEPS, LA, MAXFRT, LIW; -- 2.39.5