Displaying 2 results from an estimated 2 matches for "newpid".
Did you mean:
  new_id
  
2002 Mar 20
3
[PATCH] rsync kills all user processes on fork failure
...pts that lead to
hundreds of hung processes.
===================================================================
RCS file: RCS/util.c,v
retrieving revision 1.1
diff -u -r1.1 util.c
--- util.c      2002/03/19 15:01:28     1.1
+++ util.c      2002/03/19 15:29:32
@@ -483,7 +483,7 @@
 {
        pid_t newpid = fork();
-       if (newpid) {
+       if (newpid > 0) {
                all_pids[num_pids++] = newpid;
        }
        return newpid;
--
Paul Haas, paulh@hamjudo.com http://hamjudo.com
2011 Jan 28
2
klibc 1.5.21-1 and mksh
...ate(h, &additional_data, sizeof(additional_data));
++	OAAT_Final(h);
++	arc4_state.seed[0] = (unsigned short)(h & 0xFFFF);
++}
++
++static void
++arc4_stir(pid_t ourpid)
++{
++	/* define a "stir buffer" */
++#define UUID_LEN	36
++	struct {
++		union {
++			ssize_t numb;
++			pid_t newpid;
++		} u;
++		int fd;
++		int count;
++		char uuid[UUID_LEN];
++	} s;
++
++	if ((s.fd = open("/proc/sys/kernel/random/uuid", O_RDONLY)) != -1) {
++		s.count = 0;
++		while (s.count < UUID_LEN) {
++			s.u.numb = read(s.fd, s.uuid + s.count,
++			    UUID_LEN - s.count);
++			if (s.u.num...