Does g_poll function need to improve?

I tried using g_poll function instead of poll/select in my app for portable, the logic works on linux(call system poll function), but not yet windows platform.

(kangaroo.exe:81692): GLib-WARNING **: 20:26:25.376: WaitForMultipleObjectsEx failed: 句柄无效。
(kangaroo.exe:81692): GLib-WARNING **: 20:26:25.376: WaitForMultipleObjectsEx failed: 句柄无效。

I found the question on stackoverflow poll() c function on windows, it says:
The git’s implementation of poll() was copied from gnulib, which also contains a flawed implementation up to today.

and it say also:
MinGW’s poll() emulation has been improved.

See [commit 94f4d01](https://github.com/git/git/commit/94f4d01932279c419844aa708bec31a26056bc6b) (17 Feb 2020) by [Alexandr Miloslavskiy ( `SyntevoAlex` )](https://github.com/SyntevoAlex).**
**(Merged by [Junio C Hamano --  `gitster`  --](https://github.com/gitster) in [commit 1ac37de](https://github.com/git/git/commit/1ac37deba2608490642432f16a82c95c0abf01fa), 09 Mar 2020)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.