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:
stefan11111 2025-08-03 22:31:37 +03:00 • committed by Enrico Weigelt
commit dc2c5ca274
2 changed files with 11 additions and 0 deletions

View file

@ -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;
}

View file

@ -111,6 +111,7 @@ typedef struct _XtransConnInfo *XtransConnInfo;
*/
#define TRANS_NONBLOCKING 1
#define TRANS_CLOSEONEXEC 2
/*