aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-07-12 15:13:11 +0000
committerPavel Labath <labath@google.com>2016-07-12 15:13:11 +0000
commit3be0a3a173ccc9f5d32394fdec2230a1f26b13a3 (patch)
tree666154339ba2fdbabc514069e8bef35d86be183b /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parente448364320d143abd8ec87387565489862dc3049 (diff)
downloadllvm-3be0a3a173ccc9f5d32394fdec2230a1f26b13a3.zip
llvm-3be0a3a173ccc9f5d32394fdec2230a1f26b13a3.tar.gz
llvm-3be0a3a173ccc9f5d32394fdec2230a1f26b13a3.tar.bz2
[NPL] Increase ETXTBSY workaround sleep
10ms does not seem to be enough all the time, go to 50. llvm-svn: 275175
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index 665b257..702f4bb 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -569,7 +569,7 @@ NativeProcessLinux::ChildFunc(const LaunchArgs &args)
// issued, such as when running the test suite. (The file remains open when someone does
// an "adb shell" command in the fork() child before it has had a chance to exec.) Since
// this state should clear up quickly, wait a while and then give it one more go.
- usleep(10000);
+ usleep(50000);
execve(args.m_argv[0], const_cast<char *const *>(args.m_argv), const_cast<char *const *>(envp));
}