Skip to content
Snippets Groups Projects
Commit b9dc706f authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Joel Holdsworth
Browse files

server: Reset reported_events if socket gets reused.

MSYS setup tries to setup some pacman/gpg key configuration.
This involves starting dirmngr.exe which unfortunately hangs.
Therefore gpg reports:
    gpg: connecting dirmngr at '/etc/pacman.d/gnupg/S.dirmngr' failed: IPC connect call failed
And fails therefore "silently".

The hang in dirmngr.exe looks to be a result of reusing a socket twice.
When the first connection attempt failed, wineserver still has
the reported_events set.
Therefore on the second attempt WSAEnumNetworkEvents does no longer
report those events.
But fhandler_socket_wsock::wait_for_events gets just left when
there are some events received.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53574

dirmngr.exe --server --no-detach --homedir /etc/pacman.d/gnupg --verbose

(gdb) bt
(gdb) print evts.lNetworkEvents
$1 = 0
parent f9dce259
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment