Displaying 2 results from an estimated 2 matches for "old_stdout_fd".
2001 Mar 05
0
AIX 4.3.3 + sshd = bug
...on the server
writes a zero-length string to the terminal, the sshd daemon abruptly
closes the connection, logging no information. The following code
causes the problem to exhibit itself:
#include <stdio.h>
#include <fcntl.h>
main()
{
int tty_fd;
int old_tty_fd;
int old_stdout_fd;
char str[100];
old_tty_fd = open("/dev/tty",O_RDWR);
tty_fd = dup(old_tty_fd); /* 1 will be /dev/tty */
close(old_tty_fd);
strcpy(str,"this is the last thing you will see if sshd is broken.\n");
fprintf(stderr,"len = %d str = %s"...
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