In the new version of ipmitool 1.8.15, sol deactivate command was not closing 
the session,
This patch is to fix close console session When we issue sol deactivate command.

Signed-off-by: Mamatha Inamdar <mamat...@linux.vnet.ibm.com>
---
 lib/ipmi_sol.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/ipmi_sol.c b/lib/ipmi_sol.c
index cf58b44..b497f46 100644
--- a/lib/ipmi_sol.c
+++ b/lib/ipmi_sol.c
@@ -1648,6 +1648,9 @@ ipmi_sol_red_pill(struct ipmi_intf * intf, int instance)
                                {
                                        output(rs);
                                }
+                               else
+                                       bShouldExit = bBmcClosedSession = 1;
+
                                /*
                                 * Should recv_sol come back null, the incoming 
packet was not ours.
                                 * Just fall through, the keepalive logic will 
determine if


------------------------------------------------------------------------------
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to