Only show parent id > 1

This commit is contained in:
Ruud committed 2012-03-05 19:52:37 +01:00
1 parent 80ecfdba00
commit 59373b0793
1 file changed
+1 -1
+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