aboutsummaryrefslogtreecommitdiffstats
path: root/fbcon.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-31 12:59:45 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-31 12:59:45 +0100
commit8c074984301b0e358d0698535d9f457b703db59d (patch)
tree81fb8713a6d0a0bfce22949aecbf7b08c7f579d9 /fbcon.c
parent920879c30814c1460ef6d0ea4004bcbfaf8efd9f (diff)
downloadfbida-8c074984301b0e358d0698535d9f457b703db59d.tar.gz
use cloexec
Diffstat (limited to 'fbcon.c')
-rw-r--r--fbcon.c2
1 files changed, 1 insertions, 1 deletions
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;