summaryrefslogtreecommitdiff
path: root/netsvcs/lib
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-03-15 23:16:38 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-03-15 23:16:38 +0000
commit564193b8748139dfa84d0d589250c3208f3dcb4b (patch)
tree3e43eb49dcee97b7bac8aa2f1a2a18966164f5d8 /netsvcs/lib
parentb094ebc591e4ccebf7136e289440efbb1bf1ee5d (diff)
downloadATCD-564193b8748139dfa84d0d589250c3208f3dcb4b.tar.gz
.
Diffstat (limited to 'netsvcs/lib')
-rw-r--r--netsvcs/lib/Client_Logging_Handler.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/netsvcs/lib/Client_Logging_Handler.cpp b/netsvcs/lib/Client_Logging_Handler.cpp
index b2c12e91dfe..34a6f9b101e 100644
--- a/netsvcs/lib/Client_Logging_Handler.cpp
+++ b/netsvcs/lib/Client_Logging_Handler.cpp
@@ -199,6 +199,10 @@ ACE_Client_Logging_Handler::close (u_long)
if (this->logging_output_ != ACE_STDOUT)
ACE_OS::closesocket (this->logging_output_);
+ // Try to unlink the logger key so weird things don't happen if
+ // we're using STREAM pipes.
+ ACE_OS::unlink (this->logger_key_);
+
this->destroy ();
return 0;
}
@@ -223,6 +227,10 @@ ACE_Client_Logging_Handler::send (ACE_Log_Record &log_record)
log_record.print ("<localhost>",
0,
*orig_ostream);
+ else
+ log_record.print ("<localhost>",
+ 0,
+ stdout);
}
else
{
@@ -302,8 +310,8 @@ ACE_Client_Logging_Acceptor::fini (void)
if (this->handler_ != 0)
this->handler_->close (0);
- else
- return 0;
+
+ return 0;
}
int