ovsdb-server: Open --listen sockets before detaching.
authorBen Pfaff <blp@nicira.com>
Thu, 3 Dec 2009 22:20:33 +0000 (14:20 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 3 Dec 2009 22:47:00 +0000 (14:47 -0800)
commit6dea5eaf5c9fb6e9eaa1610e8a9c44a587bafb25
treed9981c5c12b46e7a3ba7fda8f85fc09ef6e4c124
parentae25e4b6adfd271ba08e23af32e42e34cc32af5b
ovsdb-server: Open --listen sockets before detaching.

This prevents a race condition in a command sequence that starts
ovsdb-server and then immediately connects to it with ovsdb-client.
ovsdb/jsonrpc-server.c
ovsdb/jsonrpc-server.h
ovsdb/ovsdb-server.c