Android S Beta 2 (SPB2.210513.007)
Avoid timeout with >= 1 billion nsecs

Registering a timeout of >= 1000 msecs produced an error message,
but still resulted in a system call with timeout nsecs >= 1 billion,
which would cause an error return from the system call and a crash.

Avoid this by restricting timeouts to the maximum. Also enforce
minimum for symmetry.

Bug: 140968481
Test: TreeHugger
Change-Id: I191fb88a03bf09d2c5a93864bb26624c10b6e52d
1 file changed