commit | aedb00d04eb7f0b20b6abde702ba94a46577ca68 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Mar 03 14:38:20 2014 -0800 |
committer | Elliott Hughes <enh@google.com> | Tue Mar 04 00:58:31 2014 +0000 |
tree | 2346f63ba4777e6739e6a4115b68fad529e8f801 | |
parent | dfeb42ede69a0dbea5735aed5fddaee3f810801d [diff] |
Switch to upstream alarm(3). The only way the setitimer call can fail is if the unsigned number of seconds is too large to fit in the kernel's signed number of seconds. If you schedule a 68-year alarm, glibc will fail by returning 0 and BSD will fail by returning -1. Change-Id: Ic3721b01428f5402d99f31fd7f2ba2cc58805607