From c8a9bbeef8c4daff678aae52fecae8536ed9787d Mon Sep 17 00:00:00 2001 From: hugetoad Date: Fri, 15 Aug 2003 19:09:53 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@925 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- src/zabbix_trapper/zabbix_trapperd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit