Displaying 20 results from an estimated 29 matches for "fdout".
Did you mean:
f_out
2001 Jul 09
1
sshd problem on Solaris 7: Control-C hangs shell
...a Control-C to bash's prompt, the shell hangs. (But, if I for instance run "sleep 10" (during which time the pty is in cooked mode) and press Control-C, the sleep command is interrupted quite normally, and the bash prompt returns.)
Adding some debugging printfs tell me that the read(fdout,...) in serverloop.c:process_input() returns zero when I type 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...
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) {...
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
2009 Jul 29
2
[LLVMdev] Question on llc output stream
In llc's GetOutputStream we have this:
raw_fd_ostream *FDOut = new raw_fd_ostream(OutputFilename.c_str(),
/*Binary=*/true, Force, error);
Why is Binary set true here? We don't know yet whether this is going to be an
AsmFile or a MachOFile.
Setting Binary=true causes the stream to be unbuffered. Is this w...
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) {...
1998 Nov 17
1
Failure to rename files that have active file handles
...owned by the same process doing the rename or
a different process), this is not a problem on a local NT drive or on
an NFS mounted drive. This showed up in "makedepend" which has code
like this:
fdin = fopen("Makefile",...)
rename("Makefile","Makefile.bak")
fdout = freopen("Makefile","w",stdout)
The rename fails with "Permission denied". I have tried this with oplocks
on and off (I couldn't see any other obvious configuration option that
might effect this).
Now clearly the above code can trivially be rewritten to avoid th...
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
...----------------------------------------------------------------------
Module* makeLLVMModule(LLVMContext& Context);
Module* makeMainModule(LLVMContext& Context, Module &inMod);
static tool_output_file *GetOutputStream(const char *FileName)
{
std::string error;
tool_output_file *FDOut = new tool_output_file(FileName, error,
raw_fd_ostream::F_Binary);
if (!error.empty()) {
errs() << error << '\n';
delete FDOut;
return 0;
}
return FDOut;
}
int main(int argc, char**argv) {
LLVMContext& Context = getGlobalContext();
Module* M...
2001 Aug 07
1
do_pre_login() used before declared
...ing_check),
+ (struct sockaddr *)&from);
+}
+#endif
+
/*
* This is called to fork and execute a command when we have no tty. This
* will call do_child from the child, and server_loop from the parent after
@@ -621,34 +649,6 @@
/* server_loop _has_ closed ptyfd and fdout. */
}
}
-
-#ifdef LOGIN_NEEDS_UTMPX
-void
-do_pre_login(Session *s)
-{
- socklen_t fromlen;
- struct sockaddr_storage from;
- pid_t pid = getpid();
-
- /*
- * Get IP address of client. If the connection is not a socket, let
- * the address be 0.0.0.0....
2002 Mar 21
0
[Bug 178] New: Content of /etc/nologin isn't shown to users, fix triggers probably AIX bug
...the pseudo tty. */
close(ttyfd);
+ debug("parent+++");
/*
* Create another descriptor of the pty master side for use as the
* standard input. We could use the original descriptor, but this
* simplifies code in server_loop. The descriptor is bidirectional.
*/
fdout = dup(ptyfd);
+ debug("parent++++");
if (fdout < 0)
packet_disconnect("dup #1 failed: %.100s", strerror(errno));
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2001 Oct 31
2
suggested fix for the sigchld race
...}
/*
@@ -467,6 +510,8 @@
connection_in = packet_get_connection_in();
connection_out = packet_get_connection_out();
+ notify_setup();
+
previous_stdout_buffer_bytes = 0;
/* Set approximate I/O buffer size. */
@@ -572,6 +617,7 @@
max_fd = MAX(max_fd, fdin);
max_fd = MAX(max_fd, fdout);
max_fd = MAX(max_fd, fderr);
+ max_fd = MAX(max_fd, notify_pipe[0]);
/* Sleep in select() until we can do something. */
wait_until_can_do_something(&readset, &writeset, &max_fd,
@@ -696,7 +742,11 @@
connection_in = packet_get_connection_in();
connection_out = packet_ge...
2007 Dec 27
2
Failure of gvinum after panic
...on atapci2
ata5: <ATA channel 1> on atapci2
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: <floppy drive controller> port 0x3f2-0x3f7,0x3f7 irq 6 drq 2 on acpi0
fdc0: No FDOUT register!
device_attach: fdc0 attach returned 6
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7
drq 1 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: IEEE1284...
2009 Jul 29
0
[LLVMdev] Question on llc output stream
On Jul 29, 2009, at 8:09 AM, David Greene wrote:
> In llc's GetOutputStream we have this:
>
> raw_fd_ostream *FDOut = new raw_fd_ostream(OutputFilename.c_str(),
> /*Binary=*/true,
> Force, error);
>
> Why is Binary set true here? We don't know yet whether this is
> going to be an
> AsmFile or a MachOFile.
Looks like a bug. It looks like th...
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 May 14
0
[Bug 241] New: When I kill scp, the underlying ssh child process remains alive
...ved[1]);
/* For a child to execute the command on the remote host using ssh. */
! /* esb */
! if ((childpid = fork()) == 0) {
/* Child. */
close(pin[1]);
close(pout[0]);
***************
*** 191,196 ****
--- 196,203 ----
*fdout = pin[1];
close(pout[1]);
*fdin = pout[0];
+ /* esb */
+ (void) signal(SIGTERM, killchild);
return 0;
}
***************
*** 1086,1091 ****
--- 1093,1105 ----
signal(SIGALRM, updateprogressmeter);
alarm(PROGRESSTIME);
errno = save_errno...
2000 Nov 14
0
2.3.0p1, Solaris 7 and last login (fwd)
...did I mention that in general, OpenSSH rocks? :)
--
UNIX System Administrator - Boi Sletterink
Phone: +31-15-278 2504
-------------- next part --------------
*** session.c.orig Sat Oct 28 05:19:58 2000
--- session.c Tue Nov 14 16:04:21 2000
***************
*** 590,600 ****
--- 590,616 ----
int fdout, ptyfd, ttyfd, ptymaster;
pid_t pid;
+ #define BOIS_DIRTY_PATCH
+ #ifdef BOIS_DIRTY_PATCH
+ char hostname[MAXHOSTNAMELEN];
+ time_t last_login_time;
+ struct passwd * pw = s->pw;
+ char *time_string;
+ #endif
+
if (s == NULL)
fatal(&...
2002 Jan 30
0
[Bug 87] New: Last logon that gets reported upon login is the current login time
..._pty(Session *, const char *);
void do_exec(Session *, const char *);
-void do_login(Session *, const char *);
+void do_login(Session *, const char *, const time_t, const char *);
#ifdef LOGIN_NEEDS_UTMPX
static void do_pre_login(Session *s);
#endif
@@ -548,11 +548,17 @@
{
int fdout, ptyfd, ttyfd, ptymaster;
pid_t pid;
+ char hostname[MAXHOSTNAMELEN];
+ time_t last_login_time;
if (s == NULL)
fatal("do_exec_pty: no session");
ptyfd = s->ptyfd;
ttyfd = s->ttyfd;
+ /* Get the time and hostname whe...
2001 Mar 22
0
Solaris UseLogin problem
...endif
return 0;
}
Index: session.c
===================================================================
RCS file: /cvs/openssh_cvs/session.c,v
retrieving revision 1.100
diff -u -r1.100 session.c
--- session.c 2001/03/22 02:06:57 1.100
+++ session.c 2001/03/22 21:28:04
@@ -597,6 +597,8 @@
{
int fdout, ptyfd, ttyfd, ptymaster;
pid_t pid;
+ socklen_t fromlen;
+ struct sockaddr_storage from;
if (s == NULL)
fatal("do_exec_pty: no session");
@@ -635,11 +637,35 @@
/* Close the extra descriptor for the pseudo tty. */
close(ttyfd);
+
+ /*
+ * Get IP address of client. If t...
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
2001 Jun 05
1
OpenSSH tmp cleanup
Hi,
I noticed that Markus has fixed the temporary file cleanup problems in
OpenSSH cvs. What files need patching for this ? I only noticed
changes in: session.c, channels.h and channels.c.
-Jarno
--
Jarno Huuskonen <Jarno.Huuskonen at uku.fi>