Only show parent id > 1

This commit is contained in:
Ruud
2012-03-05 19:52:37 +01:00
parent 80ecfdba00
commit 59373b0793
+1 -1
View File
@@ -80,6 +80,6 @@ class Env(object):
parent = os.getppid()
except:
parent = None
return '%d %s' % (os.getpid(), '(%d)' % parent if parent else '')
return '%d %s' % (os.getpid(), '(%d)' % parent if parent and parent > 1 else '')
except:
return 0