[libvirt] [PATCH 3/3] Make autostart of virtlockd actually work
Eric Blake
eblake at redhat.com
Fri Apr 25 14:11:43 UTC 2014
On 04/25/2014 05:28 AM, Daniel P. Berrange wrote:
> The virnetsocket.c API is hardcoded to pass --timeout=30 to
> any daemon it auto-starts. For inexplicable reasons the virtlockd
> daemon did not implement the --timeout option, so it would
> immediately exit on autostart with an error.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/locking/lock_daemon.c | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> @@ -1226,6 +1229,7 @@ int main(int argc, char **argv) {
> while (1) {
> int optidx = 0;
> int c;
> + char *tmp;
>
> c = getopt_long(argc, argv, "ldf:p:t:vVh", opts, &optidx);
Oh my - we were previously accepting -t (but not --timeout) then doing
nothing with it.
>
> @@ -1244,6 +1248,16 @@ int main(int argc, char **argv) {
> godaemon = 1;
> break;
>
> + case 't':
ACK
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140425/0b945f00/attachment-0001.sig>
More information about the libvir-list
mailing list