summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-08-30 04:03:59 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-08-30 04:03:59 +0000
commit3d095900fa3abeb5f9953590377c69d1fc548d5a (patch)
treec896c4b49f55a0410b6933923578223e644fcb91
parentff678844642f9d4631395f44a401eb0cd388e422 (diff)
downloadATCD-3d095900fa3abeb5f9953590377c69d1fc548d5a.tar.gz
ChangeLogTag:Sun Aug 29 22:57:26 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
-rw-r--r--tests/Signal_Test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Signal_Test.cpp b/tests/Signal_Test.cpp
index c70d39f8b1b..60242b9519f 100644
--- a/tests/Signal_Test.cpp
+++ b/tests/Signal_Test.cpp
@@ -273,7 +273,7 @@ worker_parent (void *)
TCHAR pid_str[12];
// Store the parent's process id so we can pass it to the child
// portably.
- ACE_OS::sprintf (pid_str, "%d", ACE_OS::getpid ());
+ ACE_OS::sprintf (pid_str, "%d", parent_pid);
// We're going to create a new process that runs this program again,
// so we need to indicate that it's the child.
@@ -368,6 +368,10 @@ main (int argc, ASYS_TCHAR *argv[])
ACE_START_TEST (ASYS_TEXT ("Signal_Test"));
ACE_INIT_LOG (ASYS_TEXT ("Signal_Test-child"));
+ // We need to set this here to work around "features" of Linux
+ // threads...
+ parent_pid = ACE_OS::getpid ();
+
// Run the parent logic for the signal test.
run_test (worker_parent);