xserver icon indicating copy to clipboard operation
xserver copied to clipboard

Trans cloexec

Open stefan11111 opened this issue 5 months ago • 2 comments

Opening this again. @metux You said we could to this in another place, can you explain more?

stefan11111 avatar Sep 11 '25 10:09 stefan11111

what is the specific use case ? where exactly could fd's be leaked ?

metux avatar Sep 11 '25 11:09 metux

ping @stefan11111

metux avatar Sep 26 '25 15:09 metux

@metux @b-aaz @cepelinas9000 @X11Libre/dev Thoughts on this? Do you think this is useful/makes sense?

stefan11111 avatar Dec 09 '25 22:12 stefan11111

I'd rather prefer adding an _XSERVTransCloseExec() function instead. Note that in the longer run, I'd like to get rid of xtrans entirely.

metux avatar Dec 10 '25 10:12 metux

Note that in the longer run, I'd like to get rid of xtrans entirely.

What will it be replaced by? pure bsd sockets?

stefan11111 avatar Dec 10 '25 10:12 stefan11111

Note that in the longer run, I'd like to get rid of xtrans entirely.

What will it be replaced by? pure bsd sockets?

yes, possibly with some little wrappers for win32 like we already have (ossock.c, etc)

metux avatar Dec 10 '25 13:12 metux