plan9fox/sys
cinap_lenrek 8ebe3f680e alarm: skip timed out alarms when inserting in procalarm() (thanks erik)
from erik quanstros 9fans post:

i think the list insertion code needs a single-read
test that f->alarm != 0. to prevent the 0 from
acting like a fencepost.  e.g. trying to insert -10 into
list -40 -30 0 -20.

	if(alarms.head) {
		l = &alarms.head;
		for(f = *l; f; f = f->palarm) {
>>			fw = f->alarm;
>>			if(fw != 0 && (long)(fw - when) >= 0) {
				up->palarm = f;
				*l = up;
				goto done;
			}
			l = &f->palarm;
		}
		*l = up;
	}
2014-01-03 01:40:17 +01:00
..
doc /sys/doc: permissions for cleanps, mkdirlist, mkfilelist 2012-10-20 19:09:54 +02:00
games/lib fortunes: That's a video card, Blake. 2013-12-26 16:11:05 -05:00
include ape: move strdup() from libbsd to libap (from sources) 2013-12-28 05:14:10 +01:00
lib acid leak: remove arena pointer a < 0xff000000 check 2013-12-25 15:00:39 +01:00
man proc(3): the args file is writable, not read only (thanks qrstuv) 2014-01-01 06:44:48 +01:00
src alarm: skip timed out alarms when inserting in procalarm() (thanks erik) 2014-01-03 01:40:17 +01:00