netdev-dpdk: Unlink vhost-user sockets on fatal signals.
authorIlya Maximets <i.maximets@samsung.com>
Tue, 2 Feb 2016 11:02:15 +0000 (14:02 +0300)
committerBen Pfaff <blp@ovn.org>
Tue, 2 Feb 2016 18:30:59 +0000 (10:30 -0800)
commit253134d5574fce09bd8669533918d86267e8b504
tree579ed357e5ce4c1f286b84f34f0dc28a737117d4
parentfd0571a40da4cacddee3a9c13d2ce021467ee845
netdev-dpdk: Unlink vhost-user sockets on fatal signals.

While killing OVS may not call rte_vhost_driver_unregister()
for vhost-user ports. As a result corresponding socket will
remain in a system and opening of that port after restart
will fail.

(Even after this patch this remains a problem for signals
that OVS does not or cannot catch, such as SIGSEGV and
SIGKILL.)

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-dpdk.c