Set FD_CLOEXEC on various sockets so they are not leaked to child processes
Created attachment 1690 [details] Patch solving the problem
Are any descriptors actually leaked and if so under what conditions? There's a: closefrom(STDERR_FILENO + 1); in session.c:do_exec() which is called for all login types.
They are leaked to the xauth child when executed on client for example.
ok, sounds reasonable, we should probably make it a helper function in misc.c
Thanks for the patch, this has been committed and will be in the 5.4 release.
With the release of 5.4p1, this bug is now considered closed.