<p style="white-space: pre-wrap; word-wrap: break-word;">I don't understand why we a) need a new function in the library and b) introduce functions for blocking semantics in a codebase that's entirely non-blocking and asynchronous event processing.</p><p style="white-space: pre-wrap; word-wrap: break-word;">When the non-blocking connect() fails, the associated file descriptor should receive a notification, which is processed by libosmocore/select.c and dispatched via poll_disp_fds() to the user application registered callback.  In that callback, the user application should be able to get the error status using the getsockopt stated here.  All async, no new libosmocore function needed.  Am I missing something?</p><p style="white-space: pre-wrap; word-wrap: break-word;">Whihc of the POLL* flags is (or are) set in that situation? libosmocore select main loop allows to set POLLIN, POLLHUP, POLLERR, POLLOUT, POLLPRI.<br></p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/24435">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/24435">change 24435</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/24435"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I1c68185120fa2a6c9b6cb8aa2a25232a44ff5508 </div>
<div style="display:none"> Gerrit-Change-Number: 24435 </div>
<div style="display:none"> Gerrit-PatchSet: 7 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 24 Jun 2021 10:43:11 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>