diff --git a/src/sys/kernel/syscall.c b/src/sys/kernel/syscall.c index 5026414..a93b97c 100644 --- a/src/sys/kernel/syscall.c +++ b/src/sys/kernel/syscall.c @@ -129,7 +129,9 @@ } void sysCheckPid(int pid,int *ptr) { - *ptr = schedFindTask(pid)->state; + kTask_t *tmpTask = scedFindTask(pid); + if (tmpTask != 0x0) && ptr != 0x0) + *ptr = tmpTask->state; return; } @@ -209,6 +211,9 @@ /*** $Log$ + Revision 1.17 2004/07/19 02:32:21 reddawg + sched: we now set task status to dead which then makes the scheduler do some clean it could be some minor overhead but i feel this is our most efficient approach right now to prevent corruption of the queues + Revision 1.16 2004/07/05 23:06:32 reddawg Fixens