From 8cb3f09416f3808b355d2ddb8530f039ae70c15d Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Thu, 28 Jun 2018 10:53:14 +0900 Subject: [PATCH] ignore small value for usleep to avoid SVACE issue Change-Id: I2012379154c5a775dc1717f5b2a8c54bb929a8aa --- NativeLauncher/installer-plugin/ni_common.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NativeLauncher/installer-plugin/ni_common.cc b/NativeLauncher/installer-plugin/ni_common.cc index 7bdaa2f..97725a3 100644 --- a/NativeLauncher/installer-plugin/ni_common.cc +++ b/NativeLauncher/installer-plugin/ni_common.cc @@ -61,7 +61,8 @@ static int __interval = 0; static void waitInterval() { - if (__interval > 0) { + // by the recommand, ignore small value for performance. + if (__interval > 10000) { fprintf(stderr, "sleep %d usec\n", __interval); usleep(__interval); } -- 2.7.4