[Bug 2492] Incomplete output of child process
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Wed Nov 18 09:38:23 AEDT 2015
https://bugzilla.mindrot.org/show_bug.cgi?id=2492
--- Comment #8 from Volth <openssh at volth.com> ---
I noticed that read() returns EAGAIN many times, openssh call read()
again until it returns success (or other error).
I does not cause any problem unless the heuristic is applied, I mean
the line "force = c->isatty && c->detach_close && c->istate !=
CHAN_INPUT_CLOSED;"
If there is no pty allocated - there is no problem with EAGAIN, read()
returns EAGAIN, openssd retries.
Until openssh get the exitcode of the child process - there is no
problem with EAGAIN, read() returns EAGAIN, openssd retries.
The problem is only when openssh gets the the exitcode (thus set
c->detach_close to true) and only since this moment EAGAIN becomes
illegal. But it happens. It happens before openssh gets the the
exitcode as well it happens after openssh gets the the exitcode.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list