platform: log when blocking poll() returns for reading netlink socket

Try to debug a hang in platform code, presumably during poll().
This logging seems useful for debugging this particular issue,
but it might be useful in general.
This commit is contained in:
Thomas Haller 2022-01-10 20:32:54 +01:00
parent ba9b199cfd
commit 56a051de56
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -9305,6 +9305,8 @@ after_read:
pfd.events = POLLIN;
r = poll(&pfd, 1, timeout_msec);
_LOGT("netlink: read: poll done (r=%d)", r);
if (r == 0) {
/* timeout and there is nothing to read. */
goto after_read;