summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-15 19:09:53 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-15 19:09:53 +0000
commitc8a9bbeef8c4daff678aae52fecae8536ed9787d (patch)
tree2bc6e15968e0e4b84edfebdc3125368a223f6e38 /src
parent000d0cc2dc89dd14dd6e39fdd7d80a516d4874f2 (diff)
downloadzabbix-c8a9bbeef8c4daff678aae52fecae8536ed9787d.tar.gz
zabbix-c8a9bbeef8c4daff678aae52fecae8536ed9787d.tar.xz
zabbix-c8a9bbeef8c4daff678aae52fecae8536ed9787d.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@925 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
-rw-r--r--src/zabbix_trapper/zabbix_trapperd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zabbix_trapper/zabbix_trapperd.c b/src/zabbix_trapper/zabbix_trapperd.c
index 6a7a0224..8f4a2cba 100644
--- a/src/zabbix_trapper/zabbix_trapperd.c
+++ b/src/zabbix_trapper/zabbix_trapperd.c
@@ -350,11 +350,15 @@ void child_main(int i,int listenfd, int addrlen)
socklen_t clilen;
struct sockaddr cliaddr;
+ zabbix_log( LOG_LEVEL_DEBUG, "In child_main()");
+
zabbix_log( LOG_LEVEL_WARNING, "zabbix_trapperd %ld started",(long)getpid());
if(0 == CONFIG_CONNECTONEACH)
{
+ zabbix_log( LOG_LEVEL_DEBUG, "Before DBconnect()");
DBconnect(CONFIG_DBHOST, CONFIG_DBNAME, CONFIG_DBUSER, CONFIG_DBPASSWORD, CONFIG_DBSOCKET);
+ zabbix_log( LOG_LEVEL_DEBUG, "After DBconnect()");
}
for(;;)
@@ -363,7 +367,9 @@ void child_main(int i,int listenfd, int addrlen)
#ifdef HAVE_FUNCTION_SETPROCTITLE
setproctitle("waiting for connection");
#endif
+ zabbix_log( LOG_LEVEL_DEBUG, "Before accept()");
connfd=accept(listenfd,&cliaddr, &clilen);
+ zabbix_log( LOG_LEVEL_DEBUG, "After accept()");
#ifdef HAVE_FUNCTION_SETPROCTITLE
setproctitle("processing data");
#endif