Mathieu Comandon
2015-03-03 22:13:46 UTC
Hello,
For the project I'm working on (Lutris, https://lutris.net) I'd like
to keep track of processes spawned from a wineserver instance.
I have managed to do this with Linux native binaries and the other
emulators we're using but in the case of wine, often will the initial
process quit and another one will open, which will be orphaned (owned
by upstart, systemd or whatever init system in use).
If was wondering if there was a way to query the wineserver for
running Windows processes. I am considering using another option using
lsof -t [wine_executable] and removing all the common winedevice.exe,
explorer.exe, etc processes from that list, but that seems a bit
hackish even if it could work and will end up doing this if any other
solution doesn't come up.
Or maybe, there is a way to keep these process from being orphaned in
the first place, that would be even better.
Regards,
Mathieu Comandon
For the project I'm working on (Lutris, https://lutris.net) I'd like
to keep track of processes spawned from a wineserver instance.
I have managed to do this with Linux native binaries and the other
emulators we're using but in the case of wine, often will the initial
process quit and another one will open, which will be orphaned (owned
by upstart, systemd or whatever init system in use).
If was wondering if there was a way to query the wineserver for
running Windows processes. I am considering using another option using
lsof -t [wine_executable] and removing all the common winedevice.exe,
explorer.exe, etc processes from that list, but that seems a bit
hackish even if it could work and will end up doing this if any other
solution doesn't come up.
Or maybe, there is a way to keep these process from being orphaned in
the first place, that would be even better.
Regards,
Mathieu Comandon