mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user