mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-28 02:21:08 +00:00
os: revert fdd6a17b55
This commit removes a macro that will be used in a future commit Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
parent
6cd0ffd9a1
commit
dc2c5ca274
2 changed files with 11 additions and 0 deletions
10
os/Xtrans.c
10
os/Xtrans.c
|
|
@ -581,7 +581,17 @@ int _XSERVTransSetOption (XtransConnInfo ciptr, int option, int arg)
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case TRANS_CLOSEONEXEC:
|
||||
#ifdef F_SETFD
|
||||
#ifdef FD_CLOEXEC
|
||||
ret = fcntl (fd, F_SETFD, FD_CLOEXEC);
|
||||
#else
|
||||
ret = fcntl (fd, F_SETFD, 1);
|
||||
#endif /* FD_CLOEXEC */
|
||||
#endif /* F_SETFD */
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ typedef struct _XtransConnInfo *XtransConnInfo;
|
|||
*/
|
||||
|
||||
#define TRANS_NONBLOCKING 1
|
||||
#define TRANS_CLOSEONEXEC 2
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue