Displaying 9 results from an estimated 9 matches for "childpid".
Did you mean:
child_pid
2006 Nov 11
3
tunneling through stdin/stdout, source routing
Hi,
quite often I find myself using commands like
$ ssh foo nc bar 12345
to connect to another host behind a firewall, and I also have a lot of
these commands in my ssh config file. Since this relies on the server
having netcat available (which a lot don't, or in some really old
version that will not shut down properly) it breaks often, and I wonder
whether it would make sense to have an
2002 May 14
0
[Bug 241] New: When I kill scp, the underlying ssh child process remains alive
.../scp.c Sat May 4 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 execu...
2001 Oct 08
1
Hanging ssh session...
.... you must change the $host and $login variables to an RSA authenticated
machine of your choosing in the script below.
<<<Test Program follows>>>
#
my $count = 0;
my $test = "~~~ ring ~~~ ring ~~~~\n";
my $sshhung = 0;
my $success = 0;
my $evalerr = 0;
my $pid;
my $childpid;
my $rc;
my $login = ""; # Place your login here
my $host = ""; # place your host here.
while(1)
{
$count++;
print <<EOF;
Test #${count}
=========================
Hangs: ${sshhung}
Eval Errors: ${evalerr}
Success: ${success}
EOF
ev...
2005 May 20
0
[PATCH] let klcc pass input from STDIN to gcc
...9;) {
push(@as, '-x', $need);
$xopt = $need;
}
@@ -79,7 +81,10 @@
# Run a program; printing out the command line if $verbose is set
sub mysystem(@) {
print STDERR join(' ', @_), "\n" if ( $verbose );
- return system(@_);
+ my $cmd = shift;
+ my $childpid = open3("<&STDIN", ">&STDOUT", ">&STDERR", $cmd, @_);
+ waitpid ($childpid, 0);
+ return $?;
}
#
@@ -117,6 +122,11 @@
# Not an option. Must be a filename then.
push(@files, $a);
$flang{$a} = $lang || filename2lang($a);
+ } elsif...
2005 May 25
1
[PATCH] klcc on multiple files
...5-25 08:19:19.000000000 +0200
+++ klibc-1.0.12/klcc.in 2005-05-25 14:26:25.000000000 +0200
@@ -81,10 +81,7 @@
# Run a program; printing out the command line if $verbose is set
sub mysystem(@) {
print STDERR join(' ', @_), "\n" if ( $verbose );
- my $cmd = shift;
- my $childpid = open3("<&STDIN", ">&STDOUT", ">&STDERR", $cmd, @_);
- waitpid ($childpid, 0);
- return $?;
+ return system (@_);
}
#
1999 Oct 20
3
patch for tinc-0.3
...ed: $foreignpid doesn't run, overwriting lockfile .\n");
print "tincsched: $foreignpid doesn't run, overwriting lockfile .\n";
write_pid($file, $pid);
return;
}
} else {
write_pid($file, $pid);
return;
}
}
sub handler {
local($sig) = @_;
$childpid = waitpid(-1, 1);
if ($children{$childpid}) {
print "tincsched: Caught a SIG$sig\n";
write_syslog('info', "Caught a SIG$sig\n");
print "Child had pid $childpid, $children{$childpid} is ready for deletion.\n";
write_syslog('info', "Child h...
2017 Mar 30
4
de-posixifying list tests?
Rafael, Filipe,
I am looking at the fixes you apply to sanitizer tests and they worry me.
(e.g. https://reviews.llvm.org/D31498)
The fixes are mostly mechanical and thus every single change looks safe,
but given the amount of changes there is large risk to cripple some of the
tests
in a way that they will stop detecting failures.
When I write a test for new functionality, I always verify that
2005 Aug 04
0
[PATCH 6/11] Xenstore watch rework
..."
-#include "utils.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-int main(int argc __attribute__((unused)), char *argv[])
-{
- int childpid, status, fds[2];
- bool parent;
- unsigned int i, acks = 0;
- struct xs_handle *h;
- char *data;
- unsigned int len;
- const char *path, *otherpath;
-
- pipe(fds);
- childpid = fork();
- if (childpid == -1)
- barf_perror("Failed fork");
- parent = (childpid != 0);
-
- h = xs_daemon_open(...
2001 Mar 17
1
ogg123: shared memory by mmap()
...sys/ipc.h>
#include <sys/shm.h>
+#endif
#include <sys/time.h>
#include <unistd.h> /* for fork and pipe*/
#include <fcntl.h>
-#ifndef DARWIN
-#include <malloc.h>
-#endif
-
#include "ogg123.h"
#include "buffer.h"
@@ -72,6 +72,22 @@
int childpid;
buf_t *buf;
+#if HAVE_SMMAP
+ int fd;
+
+ if ((fd = open("/dev/zero", O_RDWR)) < 0)
+ {
+ perror ("cannot open /dev/zero");
+ exit (1);
+ }
+ if ((buf = (buf_t *) mmap (0, sizeof(buf_t) + sizeof (chunk_t) * (size - 1),
+ PR...