Displaying 9 results from an estimated 9 matches for "wait_pid".
Did you mean:
wait_cmd
2001 Apr 04
1
compiler warnings about format strings
...Bad ownership or mode(0%3.3o) 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",
+...
2002 Mar 29
1
Two patches for OpenSSH 3.1p1 (fwd)
....1p1/serverloop.c openssh-3.1p1-peter/serverloop.c
*** openssh-3.1p1/serverloop.c Fri Feb 8 12:07:17 2002
--- openssh-3.1p1-peter/serverloop.c Mon Mar 18 22:01:02 2002
***************
*** 673,679 ****
/* We no longer want our SIGCHLD handler to be called. */
mysignal(SIGCHLD, SIG_DFL);
! wait_pid = waitpid(-1, &wait_status, 0);
if (wait_pid == -1)
packet_disconnect("wait: %.100s", strerror(errno));
else if (wait_pid != pid)
--- 673,681 ----
/* We no longer want our SIGCHLD handler to be called. */
mysignal(SIGCHLD, SIG_DFL);
! while ((wait_pid = waitpid(-1,...
2001 Mar 25
2
Bug in bsd-waitpid.c and bsd-nextstep.c
...el. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
-------------- next part --------------
--- bsd-nexstep.c.org Sun Mar 25 15:08:05 2001
+++ bsd-nextstep.c Sun Mar 25 15:09:42 2001
@@ -37,7 +37,8 @@
#undef wait /* Use NeXT's wait() function */
wait_pid = wait(&statusp);
- status = (int *) statusp.w_status;
+ if (status)
+ *status = (int)statusp.w_status;
return wait_pid;
}
--- bsd-waitpid.c.org Sun Mar 25 15:06:20 2001
+++ bsd-waitpid.c Sun Mar 25 15:07:36 2001
@@ -43,7 +43,8 @@
pid = 0; /* wait4() wants pid=0 for indiscriminate wa...
2002 Mar 26
1
Two patches for OpenSSH 3.1p1
....1p1/serverloop.c openssh-3.1p1-peter/serverloop.c
*** openssh-3.1p1/serverloop.c Fri Feb 8 12:07:17 2002
--- openssh-3.1p1-peter/serverloop.c Mon Mar 18 22:01:02 2002
***************
*** 673,679 ****
/* We no longer want our SIGCHLD handler to be called. */
mysignal(SIGCHLD, SIG_DFL);
! wait_pid = waitpid(-1, &wait_status, 0);
if (wait_pid == -1)
packet_disconnect("wait: %.100s", strerror(errno));
else if (wait_pid != pid)
--- 673,681 ----
/* We no longer want our SIGCHLD handler to be called. */
mysignal(SIGCHLD, SIG_DFL);
! while ((wait_pid = waitpid(-1,...
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
...NG IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
#include "includes.h"
#ifdef HAVE_NEXT
@@ -8,46 +30,32 @@
pid_t
posix_wait(int *status)
{
- #undef wait /* Use NeXT's wait() function */
union wait statusp;
pid_t wait_pid;
+ #undef wait /* Use NeXT's wait() function */
wait_pid = wait(&statusp);
status = (int *) statusp.w_status;
return wait_pid;
}
-
-int
-posix_utime(char *filename,struct utimbuf *buf)
-{
-...
2002 Apr 05
1
[Bug 100] serverloop.c modifications for correct UNICOS behavior
http://bugzilla.mindrot.org/show_bug.cgi?id=100
------- Additional Comments From mouring at eviladmin.org 2002-04-06 06:52 -------
The following code was committed to OpenSSH to catch some SysV issue. Does
this keep UNICOS happy?
while ((wait_pid = waitpid(-1, &wait_status, 0)) < 0)
if (errno != EINTR)
packet_disconnect("wait: %.100s", strerror(errno));
if (wait_pid != pid)
error("Strange, wait returned pid %d, expected %d",
wait_p...
2001 Sep 28
1
openssh-2.9.9p2 assumes pid_t, uid_t, etc. are not 'long'
...====================
RCS file: serverloop.c,v
retrieving revision 2.9.9.2
retrieving revision 2.9.9.2.0.1
diff -pu -r2.9.9.2 -r2.9.9.2.0.1
--- serverloop.c 2001/09/18 05:53:13 2.9.9.2
+++ serverloop.c 2001/09/28 18:37:50 2.9.9.2.0.1
@@ -631,8 +631,8 @@ server_loop(pid_t pid, int fdin_arg, int
if (wait_pid == -1)
packet_disconnect("wait: %.100s", strerror(errno));
else if (wait_pid != pid)
- error("Strange, wait returned pid %d, expected %d",
- wait_pid, pid);
+ error("Strange, wait returned pid %ld, expected %ld",
+ (long)wait_pid, (long)pid);
/* Ch...
2001 Jul 22
2
Patches for Cray T3Es running Unicossmk and SV1s running Unicos
This patch is against Cray patch against openssh-SNAP-20010710. Here
a few notes about them:
1) rijndael does not work on cray due to the fact it is rooted in 32 bits.
I looking for a fix, it may come form Wendy Palam. For now the cray
default to the following cihpers for ssh version 2 ssh are:
3des-cbc,blowfish-cbc,cast128-cbc,arcfour
2) Crays don't have setitimer so I
2001 Jul 09
1
sshd problem on Solaris 7: Control-C hangs shell
...; /* EOF message received from client. */
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 av...