only set process title on Linux
the systemcall is not portable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user