X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Flxc%2Fcommands.c;h=07be1d53539a97373c00749af81277958e4a5bed;hb=4deaa28c04c6c475ec554eec7572e6a99e637394;hp=946c72e959478ebc022a6cc8f838c1b7a3f373ff;hpb=d92710c29d44fbe748a2c06c80fd60057c06a62a;p=mirror_lxc.git diff --git a/src/lxc/commands.c b/src/lxc/commands.c index 946c72e95..07be1d535 100644 --- a/src/lxc/commands.c +++ b/src/lxc/commands.c @@ -508,7 +508,7 @@ static ssize_t lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, bool *stopped, client_fd = lxc_cmd_send(name, cmd, lxcpath, hashed_sock_name); if (client_fd < 0) { - if (IN_SET(errno, ECONNREFUSED, EPIPE)) + if (errno == ECONNREFUSED || errno == EPIPE) *stopped = 1; return systrace("Command \"%s\" failed to connect command socket", lxc_cmd_str(cmd->req.cmd));