diff options
author | msmit <msmit@remedy.nl> | 2009-12-10 15:54:35 +0000 |
---|---|---|
committer | msmit <msmit@remedy.nl> | 2009-12-10 15:54:35 +0000 |
commit | 512c5cc530a4ce941cfe76375118b419681d5bc0 (patch) | |
tree | 61029e02f67e050c16b2514b34676fdf8fab0def /CIAO/connectors/dds4ccm/examples/Hello/descriptors/run_5_to_5.pl | |
parent | a4fe82e08c84f98dd8a8806d9d6dab22ba91e3fa (diff) | |
download | ATCD-512c5cc530a4ce941cfe76375118b419681d5bc0.tar.gz |
Thu Dec 10 15:56:13 UTC 2009 Marcel Smit <msmit@remedy.nl>
* connectors/dds4ccm/examples/Hello/descriptors/run_5_to_1.pl:
* connectors/dds4ccm/examples/Hello/descriptors/run_5_to_5.pl:
* connectors/dds4ccm/examples/Hello/descriptors/run_sender.pl:
* connectors/dds4ccm/examples/Hello/descriptors/run_test.pl:
* connectors/dds4ccm/examples/Quoter/descriptors/run_test.pl:
* connectors/dds4ccm/examples/Shapes/descriptors/run_test.pl:
* connectors/dds4ccm/tests/Event_Connection_Test/descriptors/run_test.pl:
* connectors/dds4ccm/tests/Getter/descriptors/run_test.pl:
* connectors/dds4ccm/tests/PSLSampleLost/descriptors/run_test.pl:
* connectors/dds4ccm/tests/UnkeyedSamples/descriptors/run_test.pl:
Resolved some fuzz errors/warnings.
Diffstat (limited to 'CIAO/connectors/dds4ccm/examples/Hello/descriptors/run_5_to_5.pl')
-rwxr-xr-x | CIAO/connectors/dds4ccm/examples/Hello/descriptors/run_5_to_5.pl | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/CIAO/connectors/dds4ccm/examples/Hello/descriptors/run_5_to_5.pl b/CIAO/connectors/dds4ccm/examples/Hello/descriptors/run_5_to_5.pl index d1b567a21d8..13493eeda40 100755 --- a/CIAO/connectors/dds4ccm/examples/Hello/descriptors/run_5_to_5.pl +++ b/CIAO/connectors/dds4ccm/examples/Hello/descriptors/run_5_to_5.pl @@ -87,24 +87,23 @@ sub delete_ior_files { } sub kill_node_daemon { - for ($i = 0; $i < $nr_daemon; ++$i) { - $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1); - } + for ($i = 0; $i < $nr_daemon; ++$i) { + $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1); + } } sub kill_open_processes { - if ($daemons_running == 1) { - kill_node_daemon (); - } - - if ($em_running == 1) { - $EM->Kill (); $EM->TimedWait (1); - } + if ($daemons_running == 1) { + kill_node_daemon (); + } - if ($ns_running == 1) { - $NS->Kill (); $NS->TimedWait (1); - } + if ($em_running == 1) { + $EM->Kill (); $EM->TimedWait (1); + } + if ($ns_running == 1) { + $NS->Kill (); $NS->TimedWait (1); + } } sub run_node_daemons { @@ -122,13 +121,12 @@ sub run_node_daemons { print "Run dance_node_manager with $d_param\n"; $DEAMONS[$i] = $tg_daemons[$i]->CreateProcess ($d_cmd, $d_param); - $result = $DEAMONS[$i]->Spawn (); - push(@processes, $DEAMONS[$i]); + $DEAMONS[$i]->Spawn (); if ($tg_daemons[$i]->WaitForFileTimed($iorbase, $tg_daemons[$i]->ProcessStartWaitInterval ()) == -1) { print STDERR - "ERROR: The ior $iorfile file of node daemon $i could not be found\n"; + "ERROR: The ior $iorfile file of node daemon $i could not be found\n"; for (; $i >= 0; --$i) { $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1); } @@ -150,8 +148,7 @@ $NS->Spawn (); print STDERR "Starting Naming Service with -m 1 -ORBEndpoint iiop://localhost:60003 -o ns.ior\n"; if ($tg_naming->WaitForFileTimed ($ior_nsbase, - $tg_naming->ProcessStartWaitInterval ()) == -1) -{ + $tg_naming->ProcessStartWaitInterval ()) == -1) { print STDERR "ERROR: cannot find naming service IOR file\n"; $NS->Kill (); $NS->TimedWait (1); exit 1; @@ -182,7 +179,7 @@ $EM->Spawn (); if ($tg_exe_man->WaitForFileTimed ($ior_embase, $tg_exe_man->ProcessStartWaitInterval ()) == -1) { print STDERR - "ERROR: The ior file of execution manager could not be found\n"; + "ERROR: The ior file of execution manager could not be found\n"; kill_open_processes (); exit 1; } @@ -218,20 +215,17 @@ sleep (60); print "Invoking executor - stop the application -\n"; print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file -q\n"; -$E = - new PerlACE::Process ("$DANCE_ROOT/bin/dance_plan_launcher", +$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher", "-k file://$ior_emfile -x $cdp_file -q"); $E->SpawnWaitKill (5 * $tg_executor->ProcessStopWaitInterval ()); print "Invoking executor - stop the application -\n"; print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file_two -q\n"; -$E2 = - new PerlACE::Process ("$DANCE_ROOT/bin/dance_plan_launcher", +$E2 = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher", "-k file://$ior_emfile -x $cdp_file_two -q"); $E2->SpawnWaitKill (5 * $tg_executor->ProcessStopWaitInterval ()); - print "Executor returned.\n"; print "Shutting down rest of the processes.\n"; |