chiark / gitweb /
sd-dhcp-client: use asynchronous_close()
authorTom Gundersen <teg@jklm.no>
Tue, 6 May 2014 20:59:22 +0000 (22:59 +0200)
committerTom Gundersen <teg@jklm.no>
Tue, 6 May 2014 20:59:22 +0000 (22:59 +0200)
commit22fc2420b2a7220addcee33c2fa17ada44d87f9c
treebb3b86525fa5507667af55a6a035be0fbf2a32bf
parentc3d2994b595542caa971a06ea894019d16b95896
sd-dhcp-client: use asynchronous_close()

close() is a blocking call, which may slow things down measurably when running many dhcp
clients in the same single-threaded main loop. Let's just use the asynchronous version
instead to avoid the problem.
src/libsystemd-network/sd-dhcp-client.c