Add period and count to #alarm
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 13 Apr 2016 20:23:16 +0000 (16:23 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 15 Apr 2016 14:29:13 +0000 (10:29 -0400)
This adds two features:
- period: the alarm will repeat with interval 'period'
- count: track the amount of times the alarm fired.  You can read with
  EAGAIN and select/epoll this.

I also added some protection to various races on the proc_alarm's state.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>

No differences found