sd-dhcp-client: use asynchronous_close()

System Internals / systemd - Tom Gundersen [jklm.no] - 6 May 2014 15:59 UTC

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.

22fc242 sd-dhcp-client: use asynchronous_close()
src/libsystemd-network/sd-dhcp-client.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Upstream: github.com


  • Share