[PATCH v2 1/2] server: Wait for process exit more often and using increasing delay.

Alexandre Julliard julliard at winehq.org
Wed Nov 10 13:23:36 CST 2021


Rémi Bernon <rbernon at 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.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list