diff options
author | Simo Sorce <idra@samba.org> | 2009-01-05 12:18:43 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-01-05 12:18:43 -0500 |
commit | 68d71096a37780d0f8947066dc799aa7139b8fb8 (patch) | |
tree | 09c8ec444233fcccca43426ce72305abd9f02d40 /server/monitor.c | |
parent | 3bbbac7e9b57b936a8f88beb64ae9c89d6ac8ffc (diff) | |
download | sssd-68d71096a37780d0f8947066dc799aa7139b8fb8.tar.gz sssd-68d71096a37780d0f8947066dc799aa7139b8fb8.tar.xz sssd-68d71096a37780d0f8947066dc799aa7139b8fb8.zip |
Fix dp client to connect to the right dbus pipe
Diffstat (limited to 'server/monitor.c')
-rw-r--r-- | server/monitor.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |