From 8c074984301b0e358d0698535d9f457b703db59d Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 31 Jan 2019 12:59:45 +0100 Subject: use cloexec --- fbcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fbcon.c') diff --git a/fbcon.c b/fbcon.c index 071fcbd..78c47c4 100644 --- a/fbcon.c +++ b/fbcon.c @@ -127,7 +127,7 @@ static int open_restricted(const char *path, int flags, void *user_data) { int fd; - fd = open(path, flags); + fd = open(path, flags | O_CLOEXEC); if (fd < 0) { fprintf(stderr, "open %s: %s\n", path, strerror(errno)); return fd; -- cgit