commands: use IN_SET() in lxc_cmd()

parent a8da6388
...@@ -471,7 +471,7 @@ static int lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, int *stopped, ...@@ -471,7 +471,7 @@ static int lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, int *stopped,
client_fd = lxc_cmd_send(name, cmd, lxcpath, hashed_sock_name); client_fd = lxc_cmd_send(name, cmd, lxcpath, hashed_sock_name);
if (client_fd < 0) { if (client_fd < 0) {
if (errno == ECONNREFUSED || errno == EPIPE) if (IN_SET(errno, ECONNREFUSED, EPIPE))
*stopped = 1; *stopped = 1;
return log_trace_errno(-1, errno, "Command \"%s\" failed to connect command socket", return log_trace_errno(-1, errno, "Command \"%s\" failed to connect command socket",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment