efl_debug: filter own pid.

it's confusing and not helpful to report your own PID in 'list'
command.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-11-24 15:31:32 -02:00
parent 4b28d5a989
commit 4c0187609f
1 changed files with 2 additions and 0 deletions

View File

@ -40,9 +40,11 @@ _do(char *op, unsigned char *d, int size)
int *pids = malloc(n * sizeof(int));
if (pids)
{
int mypid = getpid();
memcpy(pids, d, n * sizeof(int));
for (i = 0; i < n; i++)
{
if (pids[i] == mypid) continue;
if (pids[i] > 0) printf("%i\n", pids[i]);
}
free(pids);