16c16
< * $FreeBSD: head/sys/kern/vfs_aio.c 90576 2002-02-12 17:40:41Z alc $
---
> * $FreeBSD: head/sys/kern/vfs_aio.c 91140 2002-02-23 11:12:57Z tanimura $
24a25
> #include <sys/malloc.h>
743a745,746
> struct pgrp *newpgrp;
> struct session *newsess;
784c787,788
< enterpgrp(mycp, mycp->p_pid, 1);
---
> MALLOC(newpgrp, struct pgrp *, sizeof(struct pgrp), M_PGRP, M_WAITOK | M_ZERO);
> MALLOC(newsess, struct session *, sizeof(struct session), M_SESSION, M_WAITOK | M_ZERO);
785a790,793
> PGRPSESS_XLOCK();
> enterpgrp(mycp, mycp->p_pid, newpgrp, newsess);
> PGRPSESS_XUNLOCK();
>
< * $FreeBSD: head/sys/kern/vfs_aio.c 90576 2002-02-12 17:40:41Z alc $
---
> * $FreeBSD: head/sys/kern/vfs_aio.c 91140 2002-02-23 11:12:57Z tanimura $
24a25
> #include <sys/malloc.h>
743a745,746
> struct pgrp *newpgrp;
> struct session *newsess;
784c787,788
< enterpgrp(mycp, mycp->p_pid, 1);
---
> MALLOC(newpgrp, struct pgrp *, sizeof(struct pgrp), M_PGRP, M_WAITOK | M_ZERO);
> MALLOC(newsess, struct session *, sizeof(struct session), M_SESSION, M_WAITOK | M_ZERO);
785a790,793
> PGRPSESS_XLOCK();
> enterpgrp(mycp, mycp->p_pid, newpgrp, newsess);
> PGRPSESS_XUNLOCK();
>