Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix intermittent problem with native osx stager #11165
This fixes #11133
Sometimes part of the second stage is read by the first recv syscall:
The simplest fix is to just sleep between the two stages.
The bug is intermittent, but if you run the osx stager about 10 times you should see it (let me know if you don't).
This fix also includes a change to the osx stager that allows it run successfully when a debugger is attached (e.g