From: Ben Pfaff Date: Tue, 22 Jul 2008 21:01:17 +0000 (-0700) Subject: dhcp: Fix race condition in test-dhcp-client. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c82b240bf380008d84809f3a9ef68aba1fa190e;p=openvswitch dhcp: Fix race condition in test-dhcp-client. dhclient_wait() might also access dhcp state. --- diff --git a/tests/test-dhcp-client.c b/tests/test-dhcp-client.c index 4bd4913e..815ecfd8 100644 --- a/tests/test-dhcp-client.c +++ b/tests/test-dhcp-client.c @@ -89,8 +89,8 @@ main(int argc, char *argv[]) if (dhclient_changed(cli)) { dhclient_configure_netdev(cli); } - fatal_signal_unblock(); dhclient_wait(cli); + fatal_signal_unblock(); poll_block(); } }