1
0
forked from clan/clan-core

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 c609d84273
commit d0b165b311

View File

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