--- src/sys/kern/sys_pipe.c 2004/07/24 20:30:00 1.24 +++ src/sys/kern/sys_pipe.c 2004/11/12 00:09:24 1.25 @@ -251,7 +251,6 @@ pipe(struct pipe_args *uap) pipeclose(wpipe); return (error); } - fhold(rf); uap->sysmsg_fds[0] = fd1; /* @@ -284,6 +283,7 @@ pipe(struct pipe_args *uap) rpipe->pipe_peer = wpipe; wpipe->pipe_peer = rpipe; fdrop(rf, td); + fdrop(wf, td); return (0); }