-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IsRunningWithContext not independent of wall clock #1802
Comments
As the gopsutil library will report running processes as not running (see shirou/gopsutil#1802) we need to workaround that.
As the gopsutil library will report running processes as not running (see shirou/gopsutil#1802) we need to workaround that.
As the gopsutil library will report running processes as not running (see shirou/gopsutil#1802) we need to workaround that.
As the gopsutil library will report running processes as not running (see shirou/gopsutil#1802) we need to workaround that.
As the gopsutil library will report running processes as not running (see shirou/gopsutil#1802) we need to workaround that.
As the gopsutil library will report running processes as not running (see shirou/gopsutil#1802) we need to workaround that.
When The With this in mind, I’m starting to think it might be a good idea for gopsutil to cache |
Describe the bug
When the system time is adjusted,
Process.IsRunning()
may return false, despite the process being running.The process's create time is used for this, but it's converted to wall time when being read, so if the system clock was changed in between (e.g 1h in the future),
Process.IsRunning()
returns false.Expected behavior
IsRunning() returns true for running processes even after system time change.
Environment (please complete the following information):
/etc/os-release
and the result ofuname -a
]The text was updated successfully, but these errors were encountered: