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:
emellor@leeni.uk.xensource.com committed 2005-11-26 23:59:09 +00:00
1 parent 10e8ebd5bb
commit 963d9e8fdf
1 file changed
+2 -2
+2 -2
View File
@@ -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
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.