mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:449 - ipmitool close console session for sol deactivate command
In the new version of ipmitool 1.8.15 and above, sol deactivate command was not closing the session, This patch is to fix close console session When we issue sol deactivate command.
This commit is contained in:
parent
8bd9659101
commit
a3bec1d365
@ -1648,15 +1648,11 @@ ipmi_sol_red_pill(struct ipmi_intf * intf, int instance)
|
|||||||
else if (FD_ISSET(intf->fd, &read_fds))
|
else if (FD_ISSET(intf->fd, &read_fds))
|
||||||
{
|
{
|
||||||
struct ipmi_rs * rs =intf->recv_sol(intf);
|
struct ipmi_rs * rs =intf->recv_sol(intf);
|
||||||
if ( rs)
|
if (rs) {
|
||||||
{
|
|
||||||
output(rs);
|
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
|
|
||||||
* the BMC has dropped the session.
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user