diff options
author | Michal Ptaszek <[email protected]> | 2016-01-28 15:09:16 -0600 |
---|---|---|
committer | Michal Ptaszek <[email protected]> | 2016-01-28 16:33:48 -0600 |
commit | 770c581cbe87706d2879025dfd3ea900933ed5e1 (patch) | |
tree | 216950873c8ab1dacd7371ccf17eae78eccc7f6a /lib/kernel/test/Makefile | |
parent | ca2783b4da2ee17ed655244ea7460dc11207e563 (diff) | |
download | otp-770c581cbe87706d2879025dfd3ea900933ed5e1.tar.gz otp-770c581cbe87706d2879025dfd3ea900933ed5e1.tar.bz2 otp-770c581cbe87706d2879025dfd3ea900933ed5e1.zip |
Allow to refresh resolver settings on startup
After the VM time changes inet_db:times/0 instead of returning number of
seconds since 1970, returns number of seconds since the VM start. As a
result, if inet_res:lookup is called right after the system start, the
condition for re-reading /etc/resolv.conf will not be met (time
difference between last access: 0, and the value returned from
inet_db:times/0 -> [0-5) is lower than 5 seconds) and no nameservers
will be used.
This patch allows /etc/resolv.conf to be read immediately after the
system is started.
Diffstat (limited to 'lib/kernel/test/Makefile')
0 files changed, 0 insertions, 0 deletions