You need to sign in or sign up before continuing.
提交 cc7e1503 编写于 作者: L Li Yang 提交者: Michal Privoznik

virsh: Make 'exit' action same as 'quit'

For now 'virsh quit' action like this:
--------------------------------
[root@localhost /]# virsh quit
[root@localhost /]#
--------------------------------
And 'virsh exit' action:
--------------------------------
[root@localhost /]# virsh exit

[root@localhost /]#
--------------------------------
There is a small difference('/n') between them.
According to manual said:
       quit, exit
           quit this interactive terminal

And in the code they all called cmdQuit func,
They should get same actions.
Signed-off-by: NLi Yang <liyang.fnst@cn.fujitsu.com>
上级 736e017e
...@@ -1852,7 +1852,8 @@ vshCommandRun(vshControl *ctl, const vshCmd *cmd) ...@@ -1852,7 +1852,8 @@ vshCommandRun(vshControl *ctl, const vshCmd *cmd)
if (!ret && disconnected != 0) if (!ret && disconnected != 0)
vshReconnect(ctl); vshReconnect(ctl);
if (STREQ(cmd->def->name, "quit")) /* hack ... */ if (STREQ(cmd->def->name, "quit") ||
STREQ(cmd->def->name, "exit")) /* hack ... */
return ret; return ret;
if (enable_timing) { if (enable_timing) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册