diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2015-04-11 15:40:28 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2015-04-11 15:40:28 +0000 |
| commit | 90f54cbfeb973c0e2ee7b617b7759ac4335a9efe (patch) | |
| tree | 459507ed60c5523e27a2afd507ee8abc206839ac /sys/kern/sys_pipe.c | |
| parent | 3d08016fc401d4376244e79d7da9168102154d17 (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_pipe.c')
| -rw-r--r-- | sys/kern/sys_pipe.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index fa06784bb85e..06a4d5acc4f4 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -406,13 +406,11 @@ kern_pipe(struct thread *td, int fildes[2]) int kern_pipe2(struct thread *td, int fildes[2], int flags) { - struct filedesc *fdp; struct file *rf, *wf; struct pipe *rpipe, *wpipe; struct pipepair *pp; int fd, fflags, error; - fdp = td->td_proc->p_fd; pipe_paircreate(td, &pp); rpipe = &pp->pp_rpipe; wpipe = &pp->pp_wpipe; @@ -438,7 +436,7 @@ kern_pipe2(struct thread *td, int fildes[2], int flags) finit(rf, fflags, DTYPE_PIPE, rpipe, &pipeops); error = falloc(td, &wf, &fd, flags); if (error) { - fdclose(fdp, rf, fildes[0], td); + fdclose(td, rf, fildes[0]); fdrop(rf, td); /* rpipe has been closed by fdrop(). */ pipeclose(wpipe); |
