Re: BUG #16161: pg_ctl stop fails sometimes (on Windows)

Alexander Law <exclusion@gmail.com>

From: Alexander Lakhin <exclusion@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2019-12-17T03:00:00Z
Lists: pgsql-bugs
16.12.2019 23:17, Tom Lane wrote:
>
> I've pushed this with adjustment of the other loop and some fooling
> with the comment --- I still don't see a need to cite stackoverflow
> as an authority.
Thank you! I hope now Windows machines will concede the first place of
the race for failures.

Best regards,
Alexander



Commits

  1. In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat.

  2. On Windows, wait a little to see if ERROR_ACCESS_DENIED goes away.