From: Woongsuk Cho Date: Thu, 28 Jun 2018 01:53:14 +0000 (+0900) Subject: ignore small value for usleep to avoid SVACE issue X-Git-Tag: submit/tizen/20180628.081051~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cb3f09416f3808b355d2ddb8530f039ae70c15d;p=platform%2Fcore%2Fdotnet%2Flauncher.git ignore small value for usleep to avoid SVACE issue Change-Id: I2012379154c5a775dc1717f5b2a8c54bb929a8aa --- 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); }