[Bug 1086] X forwarding won't start when a command is executed in background
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Fri Sep 23 18:57:10 EST 2005
http://bugzilla.mindrot.org/show_bug.cgi?id=1086
------- Additional Comments From djm at mindrot.org 2005-09-23 18:57 -------
hm, this is tricky: the /session/ is closed immediately upon child exit, but the
/channel/ persists after this time (until read EOF or error).
The X11 listeners need to be shut down when the /channel/ goes away, but we
don't have any way to mark the listeners as dependant on the channel. The
choices are:
1. Move x11_chanids from "struct Session" into "struct Channel", so we can
deallocate them with a cleanup function. (ugly layering violation, but we
already have several of these)
2. Don't session_close() a session until its undelying channel goes away
entirely. This may be a good way to do it - just don't deallocate the channel in
session_exit_message(), instead let the channel close callback take care of it
(include X11 closure)
3. Make all sessions share a single X11 listener. This could be simple, but it
would move us further away from supporting multiple X11 forwarding in the future
(if we ever chose to do it)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list