mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Write the error message and the hotplug-status=busy in the same transaction, to
ensure that the message is picked up. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
10e8ebd5bb
commit
963d9e8fdf
1 file changed
+2
-2
@@ -34,8 +34,8 @@ XENBUS_PATH="${XENBUS_PATH:?}"
|
||||
|
||||
ebusy()
|
||||
{
|
||||
xenstore_write "$XENBUS_PATH/hotplug-status" busy
|
||||
xenstore_write "$XENBUS_PATH/hotplug-error" "$*"
|
||||
xenstore_write "$XENBUS_PATH/hotplug-error" "$*" \
|
||||
"$XENBUS_PATH/hotplug-status" busy
|
||||
log err "$@"
|
||||
exit 1
|
||||
}
|
||||
|
||||