Displaying 3 results from an estimated 3 matches for "do_cmd_pid".
2004 Nov 22
1
patch to fix non-echo tty on scp SIGINT
...cked this would still restore the
terminal.
Adam
-------------- next part --------------
--- openssh-3.9p1/scp.c 2004-08-13 04:19:38.000000000 -0700
+++ openssh-3.9p1-ttyfix/scp.c 2004-11-22 00:54:45.679885981 -0800
@@ -105,12 +105,19 @@
/* This is used to store the pid of ssh_program */
pid_t do_cmd_pid = -1;
+/* Save terminal state for restore on exit */
+static struct termios _saved_tio;
+
static void
killchild(int signo)
{
if (do_cmd_pid > 1)
kill(do_cmd_pid, signo);
+ /* restore the terminal to its original state */
+ if (tcsetattr(fileno(stdin), TCS...
2004 Aug 31
1
[PATCH] supporting a remote scp path option in scp
...xecute for the secured connection. ("ssh" or
-S) */
char *ssh_program = _PATH_SSH_PROGRAM;
+/* This is the program to execute for the remote scp. ("scp" or -e) */
+char *scp_remote_program = _PATH_SCP_REMOTE_PROGRAM;
+
/* This is used to store the pid of ssh_program */
pid_t do_cmd_pid = -1;
@@ -198,8 +201,8 @@
int errs, remin, remout;
int pflag, iamremote, iamrecursive, targetshouldbedirectory;
-#define CMDNEEDS 64
-char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */
+char *rscpcmd; /* must hold scp_remote_program + "-r -p -...
2006 May 14
1
scp patch to delete source files after copy
...320 ****
--- 318,326 ----
case 'S':
ssh_program = xstrdup(optarg);
break;
+ case 'u':
+ delete_source = 1;
+ break;
case 'v':
addargs(&args, "-v");
verbose_mode = 1;
***************
*** 373,381 ****
remin = remout = -1;
do_cmd_pid = -1;
/* Command to be executed on remote system using "ssh". */
! (void) snprintf(cmd, sizeof cmd, "scp%s%s%s%s",
verbose_mode ? " -v" : "",
iamrecursive ? " -r" : "", pflag ? " -p" : "",
targe...