Date: Sun, 9 May 2004 16:09:14 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: FreeBSD current users <current@FreeBSD.ORG> Subject: exit1()/scheduler question.. possible typo? Message-ID: <Pine.BSF.4.21.0405091556030.24403-100000@InterJet.elischer.org>
next in thread | raw e-mail | index | archive | help
in exit1 there is an assertion to test that the exiting process is not init. (proc 1 by tradition..) yes later, nearly at the end we see: /* * Allow the scheduler to adjust the priority of the * parent when a kseg is exiting. */ if (p->p_pid != 1) sched_exit(p->p_pptr, td); firstly, the comment is wrong but, the question comes.. "if init can not get here then why have the test?" I get the impression that possibly this should be p->p_pptr->p_ppid but I don't know enough about ULE to know if that makes sense. (maybe it should be (p->p_pptr != initproc)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0405091556030.24403-100000>