[FIX] pid = -1 on message terminate
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Tue, 15 Oct 2013 08:06:34 +0000 (12:06 +0400)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Tue, 15 Oct 2013 08:06:34 +0000 (12:06 +0400)
Change-Id: I18e64f3a7a1b930cb8b4016535566aa843f0c596
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/threads.c

index ad4a03efb82da6ae5d1453108a8c5db0546781f0..7482170c605f24c473f0c27789740826e64aac29 100644 (file)
@@ -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));
                        }