giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.08k stars 1.37k forks source link

OpenBSD: pid_exists() returns True for thread IDs (TIDs) #2395

Closed giampaolo closed 2 months ago

giampaolo commented 2 months ago

Summary

Description

This is sort of similar to https://github.com/giampaolo/psutil/pull/2394 on Windows. pid_exists() on OpenBSD returns True if the argument is a thread ID (TID) instead of a PID (process ID). This is inconsistent with other platforms.