Only show parent id > 1
This commit is contained in:
1 parent
80ecfdba00
commit
59373b0793
1 file changed
+1
-1
@@ -80,6 +80,6 @@ class Env(object):
|
|||||||
parent = os.getppid()
|
parent = os.getppid()
|
||||||
except:
|
except:
|
||||||
parent = None
|
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:
|
except:
|
||||||
return 0
|
return 0
|
||||||
Reference in new issue
Block a user