diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-08 02:23:38 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-08 02:23:38 +0200 |
commit | b181bd912b0669a7c9b016f140777c39bc0b43a3 (patch) | |
tree | 81f3fea920b85c40c41b1c929b52c0546b9cd9d2 /src/drmgamma.c | |
parent | warnings + add state.c (diff) | |
download | crt-calibrator-b181bd912b0669a7c9b016f140777c39bc0b43a3.tar.gz crt-calibrator-b181bd912b0669a7c9b016f140777c39bc0b43a3.tar.bz2 crt-calibrator-b181bd912b0669a7c9b016f140777c39bc0b43a3.tar.xz |
instructions for constrast–brightness + reconfigure tty + fork to be sure everything is kept clean
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/drmgamma.c')
-rw-r--r-- | src/drmgamma.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/drmgamma.c b/src/drmgamma.c index d7e04dc..d738dd4 100644 --- a/src/drmgamma.c +++ b/src/drmgamma.c @@ -27,14 +27,6 @@ /** - * Close on exec flag for `open` - */ -#ifndef O_CLOEXEC -# define O_CLOEXEC 02000000 -#endif - - -/** * The number of elements to allocates to a buffer for a DRM device pathname */ #define DRM_DEV_NAME_MAX_LEN \ @@ -80,7 +72,7 @@ int drm_card_open(size_t index, drm_card_t* restrict card) card->connector_count = 0; sprintf(buf, DRM_DEV_NAME, DRM_DIR_NAME, (int)index); - card->fd = open(buf, O_RDWR | O_CLOEXEC); + card->fd = open(buf, O_RDWR); if (card->fd == -1) goto fail; |