summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-08-06 12:25:45 +0000
committerMartin Pool <mbp@samba.org>2001-08-06 12:25:45 +0000
commite1bd49d6f3f7a5793cc9cd06d57498ce976f81e0 (patch)
tree0d18844fdb67ab9aaa3c179991e3c6a5923b092a /main.c
parentab94af5c6f93c3b81af95888197f60522e2eb144 (diff)
downloadrsync-e1bd49d6f3f7a5793cc9cd06d57498ce976f81e0.tar.gz
Try to fix "infinite loop" warning on AIX and other compilers. (We
exit on a signal.)
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 4ecf46d1..bc51571f 100644
--- a/main.c
+++ b/main.c
@@ -360,7 +360,8 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
/* finally we go to sleep until our parent kills us
with a USR2 signal. We sleep for a short time as on
some OSes a signal won't interrupt a sleep! */
- while (1) msleep(20);
+ while (msleep(20))
+ ;
}
close(recv_pipe[1]);