]> xenbits.xensource.com Git - people/andrewcoop/mini-os.git/commit
Mini-OS: don't crash if no shutdown node is available
authorJuergen Gross <jgross@suse.com>
Tue, 21 Nov 2023 09:49:51 +0000 (10:49 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Nov 2023 21:05:11 +0000 (21:05 +0000)
commit961ed15f04f5d8fc96279836cf52bc36d0a5141e
tree9e3170481d945217ae62a3d15dc3f7b6361adfc5
parentb702dbdfc0dec45491abc9e31e23c37f95293b5b
Mini-OS: don't crash if no shutdown node is available

It might be perfectly fine not to have a control/shutdown Xenstore
node. If this is the case, don't crash, but just terminate the
shutdown thread after issuing a message that shutdown isn't available.

In fini_shutdown() clearing the watch can result in an error now, in
case the early exit above was taken. Just ignore this error now.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
shutdown.c