workerman
workerman copied to clipboard
windows version setProcessTitle
Hi
I think it will be better add static::setProcessTitle at method forkOneWorkerForWindows same as forkOneWorkerForLinux
In windows, static::setProcessTitle only set the command prompt window title which not we want.
In windows, static::setProcessTitle only set the command prompt window title which not we want.
in windows you can find process by name like:
for /f "tokens=2 delims=," %F in ('tasklist /fo CSV /NH /FI "Windowtitle eq Workerman*"') do @echo %~F
But now no one place set process title in windows. and need set directly by cli_set_process_title