From 68d71096a37780d0f8947066dc799aa7139b8fb8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 5 Jan 2009 12:18:43 -0500 Subject: Fix dp client to connect to the right dbus pipe --- server/monitor.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/monitor.c') diff --git a/server/monitor.c b/server/monitor.c index 3dc760611..2297957ea 100644 --- a/server/monitor.c +++ b/server/monitor.c @@ -626,6 +626,8 @@ static int service_send_ping(struct mt_svc *svc) return ENXIO; } + DEBUG(4,("Pinging %s\n", svc->name)); + conn = sbus_get_connection(svc->mt_conn->conn_ctx); dbus_error_init(&dbus_error); @@ -697,6 +699,8 @@ static void ping_check(DBusPendingCall *pending, void *data) /* ok peer replied, * set the reply timestamp into the service structure */ + DEBUG(4,("Service %s replied to ping\n", svc->name)); + svc->last_pong = time(NULL); break; @@ -735,6 +739,8 @@ static int service_check_alive(struct mt_svc *svc) int status; pid_t pid; + DEBUG(4,("Checking service %s(%d) is still alive\n", svc->name, svc->pid)); + pid = waitpid(svc->pid, &status, WNOHANG); if (pid == 0) { return EOK; @@ -861,6 +867,8 @@ static int start_service(const char *name, const char *command, pid_t *retpid) char **args; pid_t pid; + DEBUG(4,("Starting service %s\n", name)); + pid = fork(); if (pid != 0) { if (pid == -1) { -- cgit