Code: Select all
nbdkit -P pidfile null
Code: Select all
kill `cat pidfile`
I couldn't find a way within Wine to get the Unix process ID, but I found I could read z:\proc\self\stat to get a Unix process ID, and I can kill that. Unfortunately it gets the PID of wineserver, not the program, and obviously killing wineserver doesn't go well.
I think conceptually I just don't understand what would be the best way to translate this idiom into Wine. (FWIW on actual Windows the process ID can be used to select the process, so I think we're OK there).