barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4c0187609f2b1cb956e1967a15a74703b4b349f7

commit 4c0187609f2b1cb956e1967a15a74703b4b349f7
Author: Gustavo Sverzut Barbieri <[email protected]>
Date:   Thu Nov 24 15:31:32 2016 -0200

    efl_debug: filter own pid.
    
    it's confusing and not helpful to report your own PID in 'list'
    command.
---
 src/bin/efl/efl_debug.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/efl/efl_debug.c b/src/bin/efl/efl_debug.c
index 3af1ea5..f27504d 100644
--- a/src/bin/efl/efl_debug.c
+++ b/src/bin/efl/efl_debug.c
@@ -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);

-- 


Reply via email to