RĂ©mi Bernon rbernon@codeweavers.com writes:
Instead of waiting for 1s before considering it dead, when most of the time the process dies quickly, delaying desktop or wineserver shutdown.
This saves ~2s on the prefix shutdown time, as measured with:
time bash -c 'wine cmd /c exit |& tee /dev/null'
Note that the fact that server shutdown is not immediate is on purpose, it's mean to avoid repeated startups/shutdowns when running multiple apps in sequence. There may be margin for improvement, but making the shutdown faster shouldn't be a goal in itself.