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
This might let us systematically check process existence at the beginning of every process function like Python psutil does/when an error is encountered, for better error messages. As discussed in #605 (comment)
Note: depending of the implementation, it might still be more efficient to keep the current "get all running processes and iterate over them" approach to check for PID existence, this should always be benchmarked.
The text was updated successfully, but these errors were encountered:
Instead of listing every processes and iterating over each of them it should use the OS capabilities to only check the given pid:
/proc/$PID
existsps -o pid= -p $PID
kill -s 0 $PID
, and check the error returnedThis might let us systematically check process existence at the beginning of every process function like Python psutil does/when an error is encountered, for better error messages. As discussed in #605 (comment)
Note: depending of the implementation, it might still be more efficient to keep the current "get all running processes and iterate over them" approach to check for PID existence, this should always be benchmarked.
The text was updated successfully, but these errors were encountered: