You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On OSX, ppid() return 0, which is "weird", but also understandable because it's the only possible "null" value. On the other hand parent() should return None (and this should be fixed for sure).
On Linux the "weird" thing is that ppid() return 0 (this comes from the kernel), but PID 0 does not exist. Perhaps it should return 1 instead.
The text was updated successfully, but these errors were encountered:
Probably a reasonable solution here is to make sure that parent() always return None when dealing with PID 0 (or 1 on Linux) and leave ppid() alone. ppid() should keep returning 0 also on Linux, even if PID 0 does not exist, because it's the only possible "null" value.
On OSX:
On Linux:
On OSX,
ppid()
return 0, which is "weird", but also understandable because it's the only possible "null" value. On the other handparent()
should return None (and this should be fixed for sure).On Linux the "weird" thing is that
ppid()
return 0 (this comes from the kernel), but PID 0 does not exist. Perhaps it should return 1 instead.The text was updated successfully, but these errors were encountered: