Only show parent id > 1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user