mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
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:
parent
ba9b199cfd
commit
56a051de56
1 changed files with 2 additions and 0 deletions
|
|
@ -9305,6 +9305,8 @@ after_read:
|
||||||
pfd.events = POLLIN;
|
pfd.events = POLLIN;
|
||||||
r = poll(&pfd, 1, timeout_msec);
|
r = poll(&pfd, 1, timeout_msec);
|
||||||
|
|
||||||
|
_LOGT("netlink: read: poll done (r=%d)", r);
|
||||||
|
|
||||||
if (r == 0) {
|
if (r == 0) {
|
||||||
/* timeout and there is nothing to read. */
|
/* timeout and there is nothing to read. */
|
||||||
goto after_read;
|
goto after_read;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue