forked from enlightenment/efl
efl_debug: filter own pid.
it's confusing and not helpful to report your own PID in 'list' command.
This commit is contained in:
parent
4b28d5a989
commit
4c0187609f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue