PERFORCE change 108953 for review
Roman Divacky
rdivacky at FreeBSD.org
Wed Nov 1 20:55:55 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=108953
Change 108953 by rdivacky at rdivacky_witten on 2006/11/01 20:55:24
Change runtime check to a KASSERT.
Affected files ...
.. //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#24 edit
Differences ...
==== //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#24 (text+ko) ====
@@ -1447,12 +1447,7 @@
/* find the group leader */
p = pfind(em->shared->group_pid);
- if (p == NULL) {
-#ifdef DEBUG
- printf(LMSG("parent process not found.\n"));
-#endif
- return (0);
- }
+ KASSERT(p != NULL, ("getppid: parent process not found.\n"));
pp = p->p_pptr; /* switch to parent */
PROC_LOCK(pp);
More information about the p4-projects
mailing list