Only show parent id > 1
This commit is contained in:
@@ -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