Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/kern_descrip.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/kern_descrip.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.208 retrieving revision 1.209 diff -u -p -r1.208 -r1.209 --- src/sys/kern/kern_descrip.c 2010/12/17 22:06:31 1.208 +++ src/sys/kern/kern_descrip.c 2011/01/01 22:05:11 1.209 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_descrip.c,v 1.208 2010/12/17 22:06:31 yamt Exp $ */ +/* $NetBSD: kern_descrip.c,v 1.209 2011/01/01 22:05:11 pooka Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.208 2010/12/17 22:06:31 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.209 2011/01/01 22:05:11 pooka Exp $"); #include #include @@ -1319,15 +1319,15 @@ filedesc_dtor(void *arg, void *obj) } /* - * Make p2 share p1's filedesc structure. + * Make p share curproc's filedesc structure. */ void -fd_share(struct proc *p2) +fd_share(struct proc *p) { filedesc_t *fdp; fdp = curlwp->l_fd; - p2->p_fd = fdp; + p->p_fd = fdp; atomic_inc_uint(&fdp->fd_refcnt); }