From 6fbb9bf37a4bfb9a442243b95a36cbbcf8c79189 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 21 Mar 2002 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2002-03-21 --- port/edf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port/edf.c b/port/edf.c index 2b04d971ea40b005c8470cb8a8ff57ee9dafea46..444897e71ec57594b8dc41635f1b3aab90f59e68 100644 --- a/port/edf.c +++ b/port/edf.c @@ -258,7 +258,8 @@ edfdeadline(Proc *p, SEvent why) SET(nt); if (p){ nt = p->task; - assert(nt); + if (nt == nil || nt->state != EdfRunning) + return; } t = edfpop();