]> xenbits.xensource.com Git - xen.git/commit
tools/oxenstored: Add cooperative live-update command
authorEdwin Török <edvin.torok@citrix.com>
Fri, 8 Jan 2021 11:57:37 +0000 (11:57 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Jan 2021 16:49:21 +0000 (16:49 +0000)
commit401c67e9bc8b80eff7589307dba498ae0bfdfea6
tree4b8a94d3c3ea7b0c350e8b4cc3bb899e0e043540
parent4387b4c771feaf0455ea3dc9b4b199f51166c721
tools/oxenstored: Add cooperative live-update command

See docs/misc/xenstore.txt for documentation on live-update command.  Validate
that the binary exists and that the cmdline is valid, to prevent typos from
taking down xenstore; if live-update fails there is no way back due to the use
of exec().

Live update only proceeds if there are no active transactions, and no
unprocessed input or unflushed output.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Reviewed-by: Pau Ruiz Safont <pau.safont@citrix.com>
Reviewed-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/process.ml
tools/ocaml/xenstored/stdext.ml