You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2010/09/16 00:08:38 UTC

svn commit: r997524 - /trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc

Author: zwoop
Date: Wed Sep 15 22:08:38 2010
New Revision: 997524

URL: http://svn.apache.org/viewvc?rev=997524&view=rev
Log:
TS-327 Better warnings / errors when bad NIC is configured

In addition to the warnings / errors in the traffic.out log file,
we now also produce a message to syslog, which usually will show
up in /var/log/messages (or the likes), as

Sep 15 15:59:05 loki traffic_manager[18690]: {140699905202144} FATAL: [LocalManager::initCCom] Unable to find network interface eth1.  Exiting...

Modified:
    trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc

Modified: trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc?rev=997524&r1=997523&r2=997524&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc (original)
+++ trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc Wed Sep 15 22:08:38 2010
@@ -432,8 +432,7 @@ LocalManager::initCCom(int port, char *a
 
   found = mgmt_getAddrForIntr(intrName, &cluster_addr);
   if (found == false) {
-    mgmt_log(stderr, "[LocalManager::initCCom] Unable to find network interface %s.  Exiting...\n", intrName);
-    _exit(1);
+    mgmt_fatal(stderr, "[LocalManager::initCCom] Unable to find network interface %s.  Exiting...\n", intrName);
   }
 
   clusterAddrStr = inet_ntoa(cluster_addr);