isobusfs: do not kill application on error_queue error
Kernel may notify us about some error, which may happens if the bus was in the error state. But this is not a good reason to kill application, especially the server side. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>pull/530/head
parent
d05810f5fe
commit
1e8bc8fd34
|
|
@ -288,8 +288,8 @@ static int isobusfs_cli_handle_events(struct isobusfs_priv *priv, unsigned int n
|
|||
};
|
||||
|
||||
ret = isobusfs_recv_err(priv->sock_ccm, &emsg);
|
||||
if (ret && ret != -EINTR)
|
||||
return ret;
|
||||
if (ret)
|
||||
pr_warn("error queue reported error: %i", ret);
|
||||
}
|
||||
} else if (ev->data.fd == STDIN_FILENO) {
|
||||
if (!priv->interactive) {
|
||||
|
|
|
|||
|
|
@ -221,8 +221,8 @@ static int isobusfs_srv_handle_events(struct isobusfs_srv_priv *priv, unsigned i
|
|||
};
|
||||
|
||||
ret = isobusfs_recv_err(priv->sock_fss, &emsg);
|
||||
if (ret && ret != -EINTR)
|
||||
return ret;
|
||||
if (ret)
|
||||
pr_warn("error queue reported error: %i", ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue