lxccontainer: s/pipe()/pipe2()/g

parent 808651dc
......@@ -2278,7 +2278,7 @@ static char **do_lxcapi_get_interfaces(struct lxc_container *c)
char **interfaces = NULL;
char interface[IFNAMSIZ];
if (pipe(pipefd) < 0)
if (pipe2(pipefd, O_CLOEXEC) < 0)
return NULL;
pid = fork();
......@@ -2373,7 +2373,7 @@ static char **do_lxcapi_get_ips(struct lxc_container *c, const char *interface,
int count = 0;
char **addresses = NULL;
ret = pipe(pipefd);
ret = pipe2(pipefd, O_CLOEXEC);
if (ret < 0) {
SYSERROR("Failed to create pipe");
return NULL;
......
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