Displaying 7 results from an estimated 7 matches for "collect_children".
2009 Mar 24
0
Issue with child process exits
...ot;);
child_terminated = 1;
#ifndef _UNICOS
mysignal(SIGCHLD, sigchld_handler);
#endif
notify_parent();
errno = save_errno;
}
As far as I can tell the primary purpose of this method is to set a value
for child_terminated which is referenced by the following method:
static void
collect_children(void)
{
#ifndef HAVE_NETWARE
pid_t pid;
sigset_t oset, nset;
int status;
/* block SIGCHLD while we check for dead children */
sigemptyset(&nset);
sigaddset(&nset, SIGCHLD);
sigprocmask(SIG_BLOCK, &nset, &oset);
if (child_terminated) {
while ((pid = waitpid(-1, &statu...
2005 Jan 24
0
AW: sshd hangs
...ld [%i0], %o1
0x1f270: ld [%i1], %o2
0x1f274: add %o0, 1, %o0
0x1f278: call +0x439b8
<PLT=libc.so.1`select>
0x1f27c: clr %o3
c code (patched):
static void
collect_children(void)
{
pid_t pid;
sigset_t oset, nset;
int status;
/* block SIGCHLD while we check for dead children */
sigemptyset(&nset);
sigaddset(&nset, SIGCHLD);
sigprocmask(SIG_BLOCK, &nset, &oset);
if (child_terminated) {...
2001 Oct 10
7
OpenSSH solaris: bad return code after exec of remote command
Hi OpenSSH developers,
I am using openSSH (now 2.9.9p2, but prob occurs in 2.9p2 also) to execute
commands on a remote machine which outputs data to stdout then pipes it to
another invocation of ssh which connects back to the first machine in the same
way, where it starts a program to read and store the output from the command on
the second machine. I am using the "command" option in
2005 Jan 19
1
sshd hangs
...= 1
24453: read(4, 0xFFBEEF8F, 1) Err#11 EAGAIN
24453: sigprocmask(SIG_BLOCK, 0xFFBEEFE8, 0xFFBEEFF8) = 0
24453: sigprocmask(SIG_SETMASK, 0xFFBEEFF8, 0x00000000) = 0
24453: poll(0xFFBEEF28, 2, -1) (sleeping...)
it seems there is another problem here with collect_children() not
handling ECHILD:
{
pid_t pid;
sigset_t oset, nset;
int status;
/* block SIGCHLD while we check for dead children */
sigemptyset(&nset);
sigaddset(&nset, SIGCHLD);
sigprocmask(SIG_BLOCK, &nset, &oset);
if (chi...
2006 Nov 27
5
[Bug 52] ssh hangs on exit
http://bugzilla.mindrot.org/show_bug.cgi?id=52
dtucker at zip.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #1075 is|0 |1
obsolete| |
Attachment #1098 is|0 |1
obsolete|
2002 Jun 07
2
SIGCHLD may be inherited blocked
...Sometimes, it seems, sshd gets started with SIGCHLD blocked, this,
apparently, being the setting of sshd's parent (a shell no doubt);
signal blocking is inherited across exec*(). I don't know exactly which
shell, or what really is at fault, but it happens.
The problem is that the code in collect_children() first blocks SIGCHLD
(SIGCLD) and then resets the signal block mask to whatever it was
before, so if SIGCHLD was blocked to begin with, then it never gets
unblocked in sshd.
The resulting behaviour is that SSHv2 connections may hang.
The Solaris proc tools, specifically /usr/proc/bin/psig, alon...
2001 Nov 09
4
keystroke timing attack
I'm reading this fine article on O'Reilly:
http://linux.oreillynet.com/lpt/a//linux/2001/11/08/ssh_keystroke.html
<quote>
The paper concludes that the keystroke timing data observable from
today's SSH implementations reveals a dangerously significant amount of
information about user terminal sessions--enough to locate typed
passwords in the session data stream and reduce the