> -----Original Message----- > From: Stephen Hemminger <[email protected]> > Sent: Friday, October 30, 2026 2:04 AM > To: [email protected] > Cc: [email protected]; Jiang, YuX <[email protected]>; Maxime Coquelin > <[email protected]>; Chenbo Xia <[email protected]>; > Richardson, Bruce <[email protected]> > Subject: Re: [PATCH v2] examples/vhost: fix hang on exit > > On Thu, 29 Oct 2026 09:57:29 -0700 > Stephen Hemminger <[email protected]> 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: [email protected] > > > > Reported-by: Yu Jiang <[email protected]> > > Signed-off-by: Stephen Hemminger <[email protected]> > > This is compile test only, and needs ack from Maxime or submitter.
Tested-by: Yu Jiang <[email protected]> Best Regards Yu Jiang

