Re: [PATCH] nbd: Defer trace init until after daemonization

2025-03-05 Thread Eric Blake
On Wed, Mar 05, 2025 at 07:55:48AM +0100, Thomas Huth wrote: > On 27/02/2025 23.06, Eric Blake wrote: > > At least the simple trace backend works by spawning a helper thread, > > and setting up an atexit() handler that coordinates completion with > > the helper thread. But since atexit registratio

Re: [PATCH] nbd: Defer trace init until after daemonization

2025-03-04 Thread Thomas Huth
On 27/02/2025 23.06, Eric Blake wrote: At least the simple trace backend works by spawning a helper thread, and setting up an atexit() handler that coordinates completion with the helper thread. But since atexit registrations survive fork() but helper threads do not, this means that qemu-nbd con

[PATCH] nbd: Defer trace init until after daemonization

2025-02-27 Thread Eric Blake
At least the simple trace backend works by spawning a helper thread, and setting up an atexit() handler that coordinates completion with the helper thread. But since atexit registrations survive fork() but helper threads do not, this means that qemu-nbd configured to use the simple trace will dead