merged Gerrit's nanosleep patch
tweaked type of currLen as fixup for Nathan's patch
5 files changed