On 08.05.19 15:22, Max Reitz wrote: > --fork is a bit boring if there is no way to get the child's PID. This > option helps. > > Signed-off-by: Max Reitz <mre...@redhat.com> > --- > qemu-nbd.c | 12 ++++++++++++ > qemu-nbd.texi | 2 ++ > 2 files changed, 14 insertions(+) > > diff --git a/qemu-nbd.c b/qemu-nbd.c > index dca9e72cee..4866042160 100644 > --- a/qemu-nbd.c > +++ b/qemu-nbd.c
[...] > @@ -677,6 +680,8 @@ int main(int argc, char **argv) > bool list = false; > int old_stderr = -1; > unsigned socket_activation; > + const char *pid_file_name = NULL; > + FILE *pid_file; Great to see how well I test my patches. This shouldn’t be here anymore, of course. Max
signature.asc
Description: OpenPGP digital signature