MINOR: sock: set conn->err_code in case of EPERM
To improve the readability of sock_handle_system_err(), let's set explicitly conn->err_code as CO_ER_SOCK_ERR in case of EPERM (could be returned by setns syscall).
This commit is contained in:
parent
5f713c03be
commit
39caa20b3c
@ -237,6 +237,7 @@ static int sock_handle_system_err(struct connection *conn, struct proxy *be)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case EPERM:
|
case EPERM:
|
||||||
|
conn->err_code = CO_ER_SOCK_ERR;
|
||||||
send_log(be, LOG_EMERG,
|
send_log(be, LOG_EMERG,
|
||||||
"Proxy %s has insufficient permissions to open server socket.\n",
|
"Proxy %s has insufficient permissions to open server socket.\n",
|
||||||
be->id);
|
be->id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user