summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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