summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp')
-rw-r--r--TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp
index 7456d583bd8..3e8fc9f3d84 100644
--- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp
@@ -162,13 +162,9 @@ void VBdeleteSem(void)
/* SIGUSR1 from CTR is for killing this process, without affecting any other ones. */
-static void usr1_handler(int sig)
-{
- exit_tag = 1;
-}
-
static void exit_on_kill(void)
{
+ ACE_DEBUG ((LM_DEBUG,"(%P|%t) VBProcess killed\n"));
extern void set_exit_routine_tag(int tag);
set_exit_routine_tag(0);
ComCloseConn(savedSocket);
@@ -176,6 +172,14 @@ static void exit_on_kill(void)
exit(0);
}
+static void usr1_handler(int sig)
+{
+ cerr << "VBProcess got sigusr1\n";
+ exit_on_kill ();
+ exit_tag = 1;
+}
+
+
static void usr2_handler(int sig)
{
/*