Skip to content

Commit

Permalink
fix fd handle leak
Browse files Browse the repository at this point in the history
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
  • Loading branch information
2xsec authored and Christian Brauner committed Dec 10, 2018
1 parent 7a3e286 commit 743a299
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/tools/lxc_usernsexec.c
Expand Up @@ -91,6 +91,7 @@ static void opentty(const char * tty, int which) {
flags &= ~O_NONBLOCK;
if (fcntl(fd, F_SETFL, flags) < 0) {
printf("WARN: could not set fd flags: %s\n", strerror(errno));
close(fd);
return;
}

Expand Down

0 comments on commit 743a299

Please sign in to comment.