mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user