[PATCH v2] examples/vhost: fix hang on exit
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 29 19:03:57 CET 2026
On Thu, 29 Oct 2026 09:57:29 -0700
Stephen Hemminger <stephen at networkplumber.org> wrote:
> destroy_device() waits for the worker lcore to ack device removal.
> Since the signal handler rework, the workers exit before the vhost
> drivers are unregistered, so the destroy callback spins forever.
>
> Maing thread now blocks SIGINT and SIGTERM and uses sigwait
> to wait for one of these signals. Then unregisters and tells
> worker threads to stop.
>
> Bugzilla ID: 2071
> Fixes: 5ffa8fafcbd3 ("examples/vhost: make signal handler safe")
> Cc: stable at dpdk.org
>
> Reported-by: Yu Jiang <yux.jiang at intel.com>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
This is compile test only, and needs ack from Maxime or submitter.
More information about the dev
mailing list