tools/xenstore: simplify socket initialization
authorJuergen Gross <jgross@suse.com>
Tue, 28 Apr 2020 14:58:37 +0000 (16:58 +0200)
committerWei Liu <wl@xen.org>
Tue, 28 Apr 2020 15:38:18 +0000 (16:38 +0100)
commit44420fb223c24305642ae3189e2c6c99c565ed12
tree66b20d2c99cdc759f6af0ce8b74c38cd88377c1b
parent2add344e6a4ef690871157b87b0e7d52bc6db9e4
tools/xenstore: simplify socket initialization

The setup of file descriptors for the Xenstore sockets is needlessly
complicated: the space is allocated dynamically, while two static
variables really would do the job.

For tearing down the sockets it is easier to widen the scope of the
file descriptors from function to file.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
tools/xenstore/xenstored_core.c