Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
got rid of some unused variables
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
4bd721c
..
7d04adf
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-32,7
+32,7
@@
wait for a process to exit, calling io_flush while waiting
void wait_process(pid_t pid, int *status)
{
while (waitpid(pid, status, WNOHANG) == 0) {
void wait_process(pid_t pid, int *status)
{
while (waitpid(pid, status, WNOHANG) == 0) {
-
sleep(1
);
+
msleep(20
);
io_flush();
}
*status = WEXITSTATUS(*status);
io_flush();
}
*status = WEXITSTATUS(*status);
@@
-356,7
+356,6
@@
static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
close(recv_pipe[1]);
close(error_pipe[1]);
close(recv_pipe[1]);
close(error_pipe[1]);
- io_close_input(f_in);
if (f_in != f_out) close(f_in);
io_start_buffering(f_out);
if (f_in != f_out) close(f_in);
io_start_buffering(f_out);