Mamatha Inamdar
2014-03-05 18:09:54 UTC
currently if we are connected to ipmitool sol session and if service processor goes down due to reset/realod
then user has no way to know that sol session has been disconnected,
This patch will enable the option to inform user if sol session is disconnected from service processor.
Signed-off-by: Mamatha Inamdar <***@linux.vnet.ibm.com>
---
lib/ipmi_sol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ipmi_sol.c b/lib/ipmi_sol.c
index 4b829fc..6a02e91 100644
--- a/lib/ipmi_sol.c
+++ b/lib/ipmi_sol.c
@@ -1503,7 +1503,7 @@ static int
ipmi_sol_keepalive_using_getdeviceid(struct ipmi_intf * intf)
{
struct timeval end;
- int ret = 0;
+ static int ret = 0;
if (_disable_keepalive)
return 0;
then user has no way to know that sol session has been disconnected,
This patch will enable the option to inform user if sol session is disconnected from service processor.
Signed-off-by: Mamatha Inamdar <***@linux.vnet.ibm.com>
---
lib/ipmi_sol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ipmi_sol.c b/lib/ipmi_sol.c
index 4b829fc..6a02e91 100644
--- a/lib/ipmi_sol.c
+++ b/lib/ipmi_sol.c
@@ -1503,7 +1503,7 @@ static int
ipmi_sol_keepalive_using_getdeviceid(struct ipmi_intf * intf)
{
struct timeval end;
- int ret = 0;
+ static int ret = 0;
if (_disable_keepalive)
return 0;