search for: child_wait_status

Displaying 4 results from an estimated 4 matches for "child_wait_status".

2000 Oct 27
1
Typo in 2.2.0p1 ??
I don't already figure out what is the real impact of this but I think there is a typo in function sigchld_handler() in serverloop.c (l 75). It is written if (WIFEXITED(child_wait_status) || WIFSIGNALED(child_wait_status)) child_terminated = 1; child_has_selected = 0; But I think one actually means: if (WIFEXITED(child_wait_status) || WIFSIGNALED(child_wait_status)) { child_terminated = 1; child_has_selected = 0; } Regards, Philippe
2001 Jul 09
1
sshd problem on Solaris 7: Control-C hangs shell
...*/ static int fdout_eof = 0; /* EOF encountered reading from fdout. */ +static int fdout_maybe_eof = 0; static int fderr_eof = 0; /* EOF encountered readung from fderr. */ static int fdin_is_tty = 0; /* fdin points to a tty. */ @@ -107,6 +108,9 @@ wait_pid, child_pid); if (WIFEXITED(child_wait_status) || - WIFSIGNALED(child_wait_status)) + WIFSIGNALED(child_wait_status)) { child_terminated = 1; + if (fdout_maybe_eof) + fdout_eof = 1; + } } signal(SIGCHLD, sigchld_handler); @@ -338,10 +342,14 @@ /* Read and buffer any available stdout data from the program. */ - if (!...
2001 Apr 04
1
compiler warnings about format strings
...for '%s'.", - st.st_mode & 0777, filename); + (int)(st.st_mode & 0777), filename); error("It is recommended that your private key files are NOT accessible by others."); return 0; } Index: serverloop.c @@ -96,8 +96,8 @@ wait_pid = wait((int *) &child_wait_status); if (wait_pid != -1) { if (wait_pid != child_pid) - error("Strange, got SIGCHLD and wait returned pid %d but child is %d", - wait_pid, child_pid); + error("Strange, got SIGCHLD and wait returned pid %ld but child is %ld", + (long)wait_pid, (long)child_p...
2000 Aug 13
1
Patches for openssh port forwarding
....1p4/serverloop.c openssh-2.1.1p4-jhchanges/serverloop.c --- openssh-2.1.1p4/serverloop.c Tue Jul 11 10:31:38 2000 +++ openssh-2.1.1p4-jhchanges/serverloop.c Sun Aug 13 14:06:06 2000 @@ -58,6 +58,9 @@ static volatile int child_has_selected; /* Child has had chance to drain. */ static volatile int child_wait_status; /* Status from wait(). */ +/* Jarno: Needed to check if port_forwarding is allowed */ +extern ServerOptions options; + void server_init_dispatch(void); void @@ -722,7 +725,10 @@ originator, originator_port, target, target_port); /* XXX check permission */ - if (no_port_forwarding_fl...