chiark / gitweb /
sd-dhcp-client: test - don't close socket twice
authorTom Gundersen <teg@jklm.no>
Sat, 22 Mar 2014 09:52:49 +0000 (10:52 +0100)
committerTom Gundersen <teg@jklm.no>
Sat, 22 Mar 2014 09:52:49 +0000 (10:52 +0100)
commit2afa65c3122542b21d1881fada917c89b8913bd4
tree0501209cdb27d3e07e542eeaa85076791f1a3d58
parentc6f7c917a1b494d4455800823472227463f87438
sd-dhcp-client: test - don't close socket twice

One end of the socketpair is closed by the library, so only close our end. Also switch to
the safe_close() so we get notified about problems with closing.
src/libsystemd-network/test-dhcp-client.c