search for: fdout_eof

Displaying 9 results from an estimated 9 matches for "fdout_eof".

2001 Jul 09
1
sshd problem on Solaris 7: Control-C hangs shell
...e the Control-C?! Some Solaris quirk in pty behaviour related to interrupts in raw mode? Following this read returning 0, sshd thinks it got an EOF, closes its side of the pty, but the shell still thinks everything is OK, but of course can't get any input. So, my next try is to comment out the fdout_eof assignment. But then again, exiting from the ssh session causes the sshd to loop (printing tvp!=NULL kid 1 milli 100), and if I then press Control-C to the ssh client (where I already have exited the shell in the ssh session), sshd loops tighter, getting 0 all the time from the read(fdout). Hmm, mo...
2001 Mar 26
1
duplicated lines in serverloop.c? (openssh252p2)
Hi, I was looking through the source, and I noticed that the following code appears twice in the file serverloop.c. Is it supposed to, and if not, would there be any ill effect? +289 +290 /* Read and buffer any available stdout data from the program. */ +291 if (!fdout_eof && FD_ISSET(fdout, readset)) { +292 len = read(fdout, buf, sizeof(buf)); +293 if (len < 0 && (errno == EINTR || errno == EAGAIN)) { +294 /* do nothing */ +295 } else if (len <= 0) { +296...
2001 Mar 05
0
AIX 4.3.3 + sshd = bug
...ng the comparison operator from a "<=" to just a "<" in the serverloop.c file fixes the issue. Here is the code block (taken from the 2.3.0p1 source distribution: +304 /* Read and buffer any available stdout data from the program. */ +305 if (!fdout_eof && FD_ISSET(fdout, readset)) { +306 len = read(fdout, buf, sizeof(buf)); +307 if (len < 0 && (errno == EINTR || errno == EAGAIN)) { +308 /* do nothing */ +309 } else if (len <= 0) { +310...
2007 Jan 16
11
[Bug 52] ssh hangs on exit
http://bugzilla.mindrot.org/show_bug.cgi?id=52 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |1274 nThis| | ------- You are receiving this mail because: ------- You are the assignee for
2007 Mar 23
7
4.6p1 chan_read_failed error
The 4.6p1 sshd is logging this error during remote commands or file transfers: error: channel 0: chan_read_failed for istate 3 Platform is Solaris 8, 4.6p1 + OpenSSL 0.9.8d. The commands and transfers work correctly, so the error message appears to be spurious. The error message does not appear when processing logins. Otherwise 4.6p1 is running without any apparent problems. This error
2000 Aug 08
0
v2 connection logging vs v1
...ge, it continues to process_input(), gets a len==0 from the read(), and does: verbose("Connection closed by remote host."); fatal_cleanup(); Comparing the v1 server_loop and the v2 server_loop2, the v1 loop appears to have significantly more checks for breaking the loop: if (((fdout_eof && fderr_eof) || (child_terminated && child_has_selected)) && !packet_have_data_to_write() && (buffer_len(&stdout_buffer) == 0) && (buffer_len(&stderr_buffer) == 0)) { if (!channel_still_open())...
2007 Apr 08
11
Error message after upgraing the openssh 4.6P1
Hi, We have upgraded the openssh 4.6P1 on Solaris 8 servers. After upgrade we get the below error message whenever we execute the remote commands using ssh. Please let me know what the fix is for this. Apr 8 03:03:43 dvsrv10 sshd[25379]: [ID 800047 auth.info] Accepted publickey for osteam from 10.0.93.31 port 35856 ssh2 Apr 8 03:03:50 dvsrv10 sshd[25381]: [ID 800047 auth.error] error:
2002 Jul 31
18
so-called-hang-on-exit
...on 1.103 diff -u -r1.103 serverloop.c --- serverloop.c 24 Jun 2002 14:33:27 -0000 1.103 +++ serverloop.c 12 Jul 2002 16:34:20 -0000 @@ -388,6 +388,11 @@ buffer_append(&stderr_buffer, buf, len); } } + /* allow data loss on pty */ + if (child_terminated && fderr == -1 && !fdout_eof) { + close(fdout); + fdout_eof = 1; + } } /* Index: session.c =================================================================== RCS file: /home/markus/cvs/ssh/session.c,v retrieving revision 1.143 diff -u -r1.143 session.c --- session.c 30 Jun 2002 21:54:16 -0000 1.143 +++ session.c 12 Jul...
2002 Feb 22
5
[Bug 124] Terminal hangs when data is streaming to it...
http://bugzilla.mindrot.org/show_bug.cgi?id=124 ------- Additional Comments From markus at openbsd.org 2002-02-23 06:10 ------- what does "streaming" mean? what does "output reports" mean? do you have more detailed reports? do you have debugging output? what clients are involved? what servers? does the same happen with openssh 3.0.2? does the same happen with a recent