Displaying 7 results from an estimated 7 matches for "no_tty_flag".
Did you mean:
no_pty_flag
2000 Nov 29
1
Pseudo-tty allocation and -T option
Hello,
I've set up a cron job to use ssh with a remote forced command to delete the
contents of a directory. System A has the cron job and uses a specific key
for system B. No command as such is specified since the key on system B
specifies 'command=/bin/rm -rf ...'. However, I am getting error messages
back from the cron system (or rather from ssh) about it not allocating a tty
since
2001 Sep 28
1
[PATCH] fix for Linux hang on exit bug in 2.9.9p2
...void chan_event_fn(Channel *);
diff -u openssh-2.9.9p2/clientloop.c openssh-2.9.9p2J/clientloop.c
--- openssh-2.9.9p2/clientloop.c Mon Sep 17 23:51:14 2001
+++ openssh-2.9.9p2J/clientloop.c Fri Sep 28 12:47:09 2001
@@ -84,6 +84,7 @@
/* import options */
extern Options options;
+extern int no_tty_flag;
/* Flag indicating that stdin should be redirected from /dev/null. */
extern int stdin_null_flag;
@@ -122,7 +123,8 @@
static int connection_in; /* Connection to server (input). */
static int connection_out; /* Connection to server (output). */
static int need_rekeying; /* Set to non-zero if...
2001 Sep 05
2
sshd hangs on logout -- is this a bug?
In the changelog, there is an entry:
20001129
- (djm) Back out all the serverloop.c hacks. sshd will now hang again
if there are background children with open fds.
Does this mean that this is regarded as expected (and correct) behavior, that
should not change in the future, or does it mean that this behavior is a
known problem that someone will eventually fix?
--Adam
--
Adam McKenna
2001 Nov 14
6
[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay
...typedef void chan_event_fn(Channel *);
diff -ur openssh-3.0p1/clientloop.c openssh-3.0p1J/clientloop.c
--- openssh-3.0p1/clientloop.c Thu Oct 11 19:36:09 2001
+++ openssh-3.0p1J/clientloop.c Tue Nov 13 16:06:36 2001
@@ -84,6 +84,7 @@
/* import options */
extern Options options;
+extern int no_tty_flag;
/* Flag indicating that stdin should be redirected from /dev/null. */
extern int stdin_null_flag;
@@ -122,7 +123,8 @@
static int connection_in; /* Connection to server (input). */
static int connection_out; /* Connection to server (output). */
static int need_rekeying; /* Set to non-zero if...
2004 Apr 01
0
[Bug 829] Don't allocate a tty if -n option is set
...ssh -n <host>" is
able to open a session, but the session stays blocked because there is nothing
to be read on the input.
Following patch could be applied:
--- openssh-3.8p1.orig/ssh.c Wed Dec 17 06:33:11 2003
+++ openssh-3.8p1/ssh.c Thu Apr 1 09:01:02 2004
@@ -549,7 +549,7 @@
if (no_tty_flag)
tty_flag = 0;
/* Do not allocate a tty if stdin is not a tty. */
- if (!isatty(fileno(stdin)) && !force_tty_flag) {
+ if ((!isatty(fileno(stdin)) || stdin_null_flag) && !force_tty_flag) {
if (tty_flag)
logit("Pseudo-terminal will not be allocated because
stdin is...
2000 Aug 24
0
Force pseudo-tty allocation option "-t"
...47 2000
@@ -460,9 +460,8 @@
/* Do not allocate a tty if stdin is not a tty. */
if (!isatty(fileno(stdin))) {
- if (tty_flag)
+ if (!(tty_flag))
fprintf(stderr, "Pseudo-terminal will not be allocated because stdin is not a terminal.\n");
- tty_flag = 0;
}
/* force */
if (no_tty_flag)
2002 Jan 27
0
[PATCH] Add an exit delay to Openssh-3.0.2p1 for use in tunneling
...John Bowman
University of Alberta
diff -ur openssh-3.0.2p1/clientloop.c openssh-3.0.2p1S/clientloop.c
--- openssh-3.0.2p1/clientloop.c Sun Nov 11 17:06:33 2001
+++ openssh-3.0.2p1S/clientloop.c Sat Jan 19 14:50:11 2002
@@ -84,6 +84,7 @@
/* import options */
extern Options options;
+extern int no_tty_flag;
/* Flag indicating that stdin should be redirected from /dev/null. */
extern int stdin_null_flag;
@@ -122,7 +123,8 @@
static int connection_in; /* Connection to server (input). */
static int connection_out; /* Connection to server (output). */
static int need_rekeying; /* Set to non-zero if...