[FIX] add da_manager CPU load info to MSG_SYSTEM 91/21391/1
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Mon, 19 May 2014 15:28:23 +0000 (19:28 +0400)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Mon, 19 May 2014 15:28:23 +0000 (19:28 +0400)
Change-Id: I75d23f4b508f1af04190d4368f40cc02631d090c
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/sys_stat.c

index 95684f9..f82edcf 100644 (file)
@@ -1738,7 +1738,6 @@ static int get_pid_array(int arr[], const int n)
        DIR *d = opendir("/proc");
        struct dirent *dirent;
        int count = 0;
-       pid_t self_pid = getpid();
 
        if (!d) {
                LOGW("Cannot open /proc dir (%s)\n", strerror(errno));
@@ -1749,7 +1748,7 @@ static int get_pid_array(int arr[], const int n)
                if (dirent->d_type == DT_DIR) {
                        char *tmp;
                        pid_t pid = strtol(dirent->d_name, &tmp, 10);
-                       if (*tmp == '\0' && pid != self_pid)
+                       if (*tmp == '\0')
                                arr[count++] = pid;
                }
        }