diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-31 12:59:45 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-31 12:59:45 +0100 |
commit | 8c074984301b0e358d0698535d9f457b703db59d (patch) | |
tree | 81fb8713a6d0a0bfce22949aecbf7b08c7f579d9 /fbtools.c | |
parent | 920879c30814c1460ef6d0ea4004bcbfaf8efd9f (diff) | |
download | fbida-8c074984301b0e358d0698535d9f457b703db59d.tar.gz |
use cloexec
Diffstat (limited to 'fbtools.c')
-rw-r--r-- | fbtools.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -235,7 +235,7 @@ gfxstate* fb_init(const char *device, char *mode) fprintf(stderr, "trying fbdev: %s ...\n", device); /* get current settings (which we have to restore) */ - if (-1 == (fb = open(device,O_RDWR /* O_WRONLY */))) { + if (-1 == (fb = open(device,O_RDWR | O_CLOEXEC))) { fprintf(stderr,"open %s: %s\n",device,strerror(errno)); exit(1); } |