]> git.proxmox.com Git - mirror_qemu.git/commit - scsi/qemu-pr-helper.c
pr-helper: Rework socket path handling
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 3 Jul 2018 09:51:14 +0000 (11:51 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Jul 2018 16:39:19 +0000 (18:39 +0200)
commit2729d79d4993099782002c9a218de1fc12c32c69
tree1e8819da3494a302bf26bcc7c5efb3a3cccdeb89
parentee8c13b81474e002db083e9692b11c0e106a9c7f
pr-helper: Rework socket path handling

When reviewing Paolo's pr-helper patches I've noticed couple of
problems:

1) socket_path needs to be calculated at two different places
(one for printing out help, the other if socket activation is NOT
used),

2) even though the default socket_path is allocated in
compute_default_paths() it is the only default path the function
handles. For instance, pidfile is allocated outside of this
function. And yet again, at different places than 1)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Message-Id: <c791ba035f26ea957e8f3602e3009b621769b1ba.1530611283.git.mprivozn@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scsi/qemu-pr-helper.c