search for: killchild

Displaying 6 results from an estimated 6 matches for "killchild".

2002 May 14
0
[Bug 241] New: When I kill scp, the underlying ssh child process remains alive
...15:42:50 2002 *************** *** 133,138 **** --- 133,142 ---- /* This is the program to execute for the secured connection. ("ssh" or -S) */ char *ssh_program = _PATH_SSH_PROGRAM; + /* esb: added the child PID so we can kill it if we get killed */ + pid_t childpid; + static void killchild(int signo); + /* * This function executes the given command as the specified user on the * given host. This returns < 0 if execution fails, and >= 0 otherwise. This *************** *** 167,173 **** close(reserved[1]); /* For a child to execute the command on the rem...
2004 Nov 22
1
patch to fix non-echo tty on scp SIGINT
..."reset" command will fix it.) This is a pretty regular occurance for me, and some others I've talked to - usually when you realize that the scp command you typed has a typo and decide to abort. Strangely, ssh handles this correctly, but scp does not. The single handler in scp.c is killchild(), which should pass the SIGINT along to the ssh process, which would restore the terminal. However this doesn't work for some reason I couldn't discern - perhaps the ssh process is invoked in such a way that it doesn't have access to the terminal settings? I created the attached patc...
2004 Oct 06
2
[LLVMdev] Compiling errors from UnixLocalInferiorProcess.cpp when compiling on MinGW
...tion it appears in.) C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:264: error: ` fork' undeclared (first use this function) C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp: In member function `void <unnamed>::IP::killChild() const': C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:428: error: ` WNOHANG' undeclared (first use this function) C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:428: error: ` waitpid' undeclared (first use this...
2004 Oct 06
0
[LLVMdev] Compiling errors from UnixLocalInferiorProcess.cpp when compiling on MinGW
...C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:264: > error: ` > fork' undeclared (first use this function) > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp: > In > member function `void <unnamed>::IP::killChild() const': > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:428: > error: ` > WNOHANG' undeclared (first use this function) > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:428: > error: ` > waitpid'...
2012 Aug 19
3
Bug Report and patch fix
...har *[]); void toremote(char *, int, char *[]); void usage(void); +void verifypath(char *); int main(int argc, char **argv) @@ -551,6 +552,18 @@ } void +verifypath(char *file) +{ + if (access(file, F_OK) == -1) + { + errno = ENOENT; + run_err("%s: %s",file,strerror(errno)); + killchild(0); + } +} + + +void toremote(char *targ, int argc, char **argv) { char *bp, *host, *src, *suser, *thost, *tuser, *arg; @@ -656,6 +669,7 @@ if (remin == -1) { xasprintf(&bp, "%s -t %s%s", cmd, *targ == '-' ? "-- " : "", targ); + ver...
2004 Oct 06
2
[LLVMdev] Compiling errors from UnixLocalInferiorProcess.cpp when compiling on MinGW
...ojects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:264: > > error: ` > > fork' undeclared (first use this function) > > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp: > > In > > member function `void <unnamed>::IP::killChild() const': > > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:428: > > error: ` > > WNOHANG' undeclared (first use this function) > > C:/MinGW/msys/local/projects/src/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp:428: > > erro...