Patch improving handling of errors during passing connection to the kernel.

From Lev Vainblat <lev@zadarastorage.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4295 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-05-11 01:20:26 +00:00
parent d9948f2922
commit d3b4b46223
+4 -1
View File
@@ -416,7 +416,10 @@ again:
switch (conn->state) {
case STATE_KERNEL:
conn_pass_to_kern(conn, pollfd->fd);
conn->state = STATE_CLOSE;
if(conn->passed_to_kern)
conn->state = STATE_CLOSE;
else
conn->state = STATE_EXIT;
break;
case STATE_EXIT:
case STATE_CLOSE: