https://bugs.winehq.org/show_bug.cgi?id=46272
Bug ID: 46272 Summary: Create TaskList and MAP linux PID to wine windows PID Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: tools Assignee: wine-bugs@winehq.org Reporter: roberto@spadim.com.br Distribution: ---
Starting with 2 metatrader issues, i went to IRC and talked with zf and ken, resume:
I need to kill a wine process, but don't hard kill it. The windows solution is "taskkill /im <windows pid>"
The problem: we don't know what <windows pid> should be used
Workaround to get windows pid: each wine process should use WINE_DEBUG=+process,+pid. and pattern match the stdout from wine command, lines containing "__wine_kernel_init starting process" and "<imagename.exe>", if you have more than one line get the last one
it's ugly (a lot) we should resolve this writing a tasklist.exe to wine... that's the best of both worlds wine windows and linux unix
ideas: 1) from winedbg --command 'info proc', we have a tasklist with only windows pid 2) somewhere in wineserver we have linux-windows pid 3) create a tool like windows tasklist.exe with a new column "wine host PID"
somework done here: https://github.com/wine-mirror/wine/blob/6d801377055911d914226a3c6af8d8637a6...