forked from clan/clan-core
only set process title on Linux
the systemcall is not portable
This commit is contained in:
parent
c609d84273
commit
d0b165b311
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user