Re: [PATCH 2/3] qsd: Add --daemonize

2022-01-03 Thread Hanna Reitz
On 30.12.21 17:12, Vladimir Sementsov-Ogievskiy wrote: 22.12.2021 14:41, Hanna Reitz wrote: This option does basically the same as --fork does for qemu-nbd: Can we share the code? Before this patch we already have --fork code-path of qemu-nbd and -daemonize code-path of QEMU.. Now we have on

Re: [PATCH 2/3] qsd: Add --daemonize

2021-12-30 Thread Vladimir Sementsov-Ogievskiy
22.12.2021 14:41, Hanna Reitz wrote: This option does basically the same as --fork does for qemu-nbd: Can we share the code? Before this patch we already have --fork code-path of qemu-nbd and -daemonize code-path of QEMU.. Now we have one more. Did you consider improving and sharing the old

[PATCH 2/3] qsd: Add --daemonize

2021-12-22 Thread Hanna Reitz
This option does basically the same as --fork does for qemu-nbd: - We fork off a child process - The child process is daemonized (closing its stdin and stdout) - stderr of the child is routed through the parent, so the parent can see errors and adjust its exit code accordingly - Once the child cl