From b181bd912b0669a7c9b016f140777c39bc0b43a3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 Aug 2014 02:23:38 +0200 Subject: instructions for constrast–brightness + reconfigure tty + fork to be sure everything is kept clean MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/drmgamma.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/drmgamma.c') diff --git a/src/drmgamma.c b/src/drmgamma.c index d7e04dc..d738dd4 100644 --- a/src/drmgamma.c +++ b/src/drmgamma.c @@ -26,14 +26,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 */ @@ -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; -- cgit v1.2.3-70-g09d2