mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 12:40:11 +01:00
dns: fix race waiting for netconfig
This commit is contained in:
parent
ac61ffcf2b
commit
bd448f55f0
1 changed files with 4 additions and 0 deletions
|
|
@ -322,6 +322,10 @@ dispatch_netconfig (const char *domain,
|
|||
ret = waitpid (pid, NULL, 0);
|
||||
if (ret < 0 && errno == EINTR)
|
||||
goto again;
|
||||
else if (ret < 0 && errno == ECHILD) {
|
||||
/* When the netconfig exist, the errno is ECHILD, it should return TRUE */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return ret > 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue