View | Details | Raw Unified | Return to bug 197246
Collapse All | Expand All

(-)sys/kern/sys_pipe.c (-4 / +3 lines)
Lines 381-392 Link Here
381
381
382
	ino = dpipe->pipe_ino;
382
	ino = dpipe->pipe_ino;
383
	funsetown(&dpipe->pipe_sigio);
383
	funsetown(&dpipe->pipe_sigio);
384
	pipeclose(dpipe);
385
	if (dpipe->pipe_state & PIPE_NAMED) {
384
	if (dpipe->pipe_state & PIPE_NAMED) {
386
		dpipe = dpipe->pipe_peer;
385
		funsetown(&dpipe->pipe_peer->pipe_sigio);
387
		funsetown(&dpipe->pipe_sigio);
386
		pipeclose(dpipe->pipe_peer);
388
		pipeclose(dpipe);
389
	}
387
	}
388
	pipeclose(dpipe);
390
	if (ino != 0 && ino != (ino_t)-1)
389
	if (ino != 0 && ino != (ino_t)-1)
391
		free_unr(pipeino_unr, ino);
390
		free_unr(pipeino_unr, ino);
392
}
391
}

Return to bug 197246