search for: all_pids

Displaying 2 results from an estimated 2 matches for "all_pids".

Did you mean: all_ids
2002 Mar 20
3
[PATCH] rsync kills all user processes on fork failure
...============================= 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
2004 May 29
1
[patch] Filename conversion
...har *args[MAX_ARGS]; + + if (verbose > 2) + rprintf(FINFO, "Running filename converter: %s\n", fname_convert_cmd); + split_on_spaces(fname_convert_cmd, args); + /* Invoke child pipe with non-blocking IO and without registering it for + autocleanup (the latter may blow up the all_pids table, and is not needed + since we have our own cleanup handler. */ + conv_pid = piped_child(args, &conv_read_fd, &conv_write_fd, 0, 0); + set_nonblocking(conv_write_fd); + set_nonblocking(conv_read_fd); + } +} + +/** + * Kills the filename converter process. Should be called when t...