that said, just holding alarms qlock while setting up->alarm = 0 is not enougth when you want to guarantee that no alarms will be delivered when the alarm(0) syscall returns. you would also need to remove a potentially posted alarm note from your note array and reset up->notepending (all under debug qlock of course).
-- cinap
