All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] rsync:Use usleep() for msleep() if it is available
@ 2015-10-28  6:41 Chen Qi
  2015-10-28  6:41 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2015-10-28  6:41 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit f787b688f2884ce3fa888b4041030538c7d2bf55:

  oeqa/utils/decorators: fix missing keyword arguments on decorators (2015-10-27 07:22:22 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib ChenQi/rsync-usleep
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/rsync-usleep

Chen Qi (1):
  rsync:Use usleep() for msleep() if it is available

 ...rsync-use-usleep-for-msleep-when-possible.patch | 55 ++++++++++++++++++++++
 meta/recipes-devtools/rsync/rsync.inc              |  3 +-
 2 files changed, 57 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/rsync/files/0001-rsync-use-usleep-for-msleep-when-possible.patch

-- 
1.9.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] rsync:Use usleep() for msleep() if it is available
  2015-10-28  6:41 [PATCH 0/1] rsync:Use usleep() for msleep() if it is available Chen Qi
@ 2015-10-28  6:41 ` Chen Qi
  2015-10-28 11:14   ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2015-10-28  6:41 UTC (permalink / raw)
  To: openembedded-core

Use usleep() for msleep() if it is available.

Upstreamlink:https://git.samba.org/?p=rsync.git;a=
commitdiff;h=5546dab32970955e77ef7a5886bcd8fb765a25bf

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 ...rsync-use-usleep-for-msleep-when-possible.patch | 55 ++++++++++++++++++++++
 meta/recipes-devtools/rsync/rsync.inc              |  3 +-
 2 files changed, 57 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/rsync/files/0001-rsync-use-usleep-for-msleep-when-possible.patch

diff --git a/meta/recipes-devtools/rsync/files/0001-rsync-use-usleep-for-msleep-when-possible.patch b/meta/recipes-devtools/rsync/files/0001-rsync-use-usleep-for-msleep-when-possible.patch
new file mode 100644
index 0000000..ad54add
--- /dev/null
+++ b/meta/recipes-devtools/rsync/files/0001-rsync-use-usleep-for-msleep-when-possible.patch
@@ -0,0 +1,55 @@
+Upstream-Status: Pending
+
+Subject: rsync: use usleep() for msleep() when possible
+
+This patch refers to https://git.samba.org/?p=rsync.git;a=commitdiff;h=5546dab32970955e77ef7a5886bcd8fb765a25b
+
+Signed-off-by: Hu Yadi <Yadi.Hu@windriver.com>
+Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
+---
+ configure.ac | 2 +-
+ util2.c      | 7 ++++++-
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index cf588ce..12e0dba 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -602,7 +602,7 @@ AC_CHECK_FUNCS(waitpid wait4 getcwd strdup chown chmod lchmod mknod mkfifo \
+     setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
+     seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
+     extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
+-    initgroups utimensat posix_fallocate attropen setvbuf)
++    initgroups utimensat posix_fallocate attropen setvbuf usleep)
+ 
+ dnl cygwin iconv.h defines iconv_open as libiconv_open
+ if test x"$ac_cv_func_iconv_open" != x"yes"; then
+diff --git a/util2.c b/util2.c
+index 6ffbcec..73cb736 100644
+--- a/util2.c
++++ b/util2.c
+@@ -35,6 +35,9 @@ extern int checksum_len;
+  **/
+ int msleep(int t)
+ {
++#ifdef HAVE_USLEEP
++	usleep(t*1000);
++#else
+ 	int tdiff = 0;
+ 	struct timeval tval, t1, t2;
+ 
+@@ -52,8 +55,10 @@ int msleep(int t)
+ 			t1 = t2; /* Time went backwards, so start over. */
+ 		tdiff = (t2.tv_sec - t1.tv_sec)*1000 +
+ 			(t2.tv_usec - t1.tv_usec)/1000;
++		if (tdiff < 0)
++			t1 = t2; /* Time went backwards, so start over. */
+ 	}
+-
++#endif
+ 	return True;
+ }
+ 
+-- 
+1.9.1
+
diff --git a/meta/recipes-devtools/rsync/rsync.inc b/meta/recipes-devtools/rsync/rsync.inc
index c65f270..b250367 100644
--- a/meta/recipes-devtools/rsync/rsync.inc
+++ b/meta/recipes-devtools/rsync/rsync.inc
@@ -11,7 +11,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 DEPENDS = "popt"
 
 SRC_URI = "http://rsync.samba.org/ftp/rsync/src/rsync-${PV}.tar.gz \
-           file://rsyncd.conf"
+           file://rsyncd.conf \
+           file://0001-rsync-use-usleep-for-msleep-when-possible.patch"
 
 inherit autotools
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] rsync:Use usleep() for msleep() if it is available
  2015-10-28  6:41 ` [PATCH 1/1] " Chen Qi
@ 2015-10-28 11:14   ` Burton, Ross
  0 siblings, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2015-10-28 11:14 UTC (permalink / raw)
  To: Chen Qi; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

On 28 October 2015 at 06:41, Chen Qi <Qi.Chen@windriver.com> wrote:

> +Upstream-Status: Pending
>

Don't you mean backport?

Ross

[-- Attachment #2: Type: text/html, Size: 551 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-28 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28  6:41 [PATCH 0/1] rsync:Use usleep() for msleep() if it is available Chen Qi
2015-10-28  6:41 ` [PATCH 1/1] " Chen Qi
2015-10-28 11:14   ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.