From 088a4541b907c9e7be87bc0bf8ea8962f23f7f44 Mon Sep 17 00:00:00 2001 From: Vitaliy Cherepanov Date: Tue, 15 Oct 2013 12:06:34 +0400 Subject: [PATCH] [FIX] pid = -1 on message terminate Change-Id: I18e64f3a7a1b930cb8b4016535566aa843f0c596 Signed-off-by: Vitaliy Cherepanov --- daemon/threads.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/threads.c b/daemon/threads.c index ad4a03e..7482170 100644 --- a/daemon/threads.c +++ b/daemon/threads.c @@ -131,6 +131,7 @@ static void* recvThread(void* data) barloc[0] = '\0'; barloc++; + manager.target[index].pid = atoi(log.data); event = EVENT_PID; write(manager.target[index].event_fd, &event, sizeof(uint64_t)); } -- 2.7.4