only set process title on Linux

the systemcall is not portable
This commit is contained in:
Jörg Thalheim
2024-01-02 15:35:11 +01:00
parent c07e7868a5
commit c889b2ade1

View File

@@ -38,6 +38,8 @@ class MPProcess:
def _set_proc_name(name: str) -> None: def _set_proc_name(name: str) -> None:
if sys.platform != "linux":
return
import ctypes import ctypes
# Define the prctl function with the appropriate arguments and return type # Define the prctl function with the appropriate arguments and return type