summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6365546)
There's nothing worse than grabbing a lock, trying to do something, and
then being killed by an alarm clock midway through.
Well, there are probably are worse things, but this commit message
isn't the right place to list them.
errno = 0;
}
signal(SIGALRM, oalrm);
errno = 0;
}
signal(SIGALRM, oalrm);
+ if (!ot)
+ alarm(0);
+ else {
nt = time(0) - nt;
if (nt > ot)
raise(SIGALRM);
nt = time(0) - nt;
if (nt > ot)
raise(SIGALRM);