--- //depot/yahoo/ybsd_10/src/sys/kern/sys_pipe.c 2013-12-27 23:12:18.000000000 0000 +++ /home/peter/ybsd_10/src/sys/kern/sys_pipe.c 2013-12-27 23:12:18.000000000 0000 @@ -389,7 +389,7 @@ ino = dpipe->pipe_ino; funsetown(&dpipe->pipe_sigio); pipeclose(dpipe); - if (dpipe->pipe_state & PIPE_NAMED) { + if ((dpipe->pipe_state & PIPE_NAMED) && dpipe->pipe_peer->pipe_present == PIPE_ACTIVE) { dpipe = dpipe->pipe_peer; funsetown(&dpipe->pipe_sigio); pipeclose(dpipe); __mtx_assert() at __mtx_assert+0x3b/frame 0xfffffe048b9b17e0 knote() at knote+0x39/frame 0xfffffe048b9b1830 pipeclose() at pipeclose+0xbe/frame 0xfffffe048b9b1860 pipe_dtor() at pipe_dtor+0x49/frame 0xfffffe048b9b1880 fifo_close() at fifo_close+0x144/frame 0xfffffe048b9b18c0 VOP_CLOSE_APV() at VOP_CLOSE_APV+0xea/frame 0xfffffe048b9b18f0 vn_close() at vn_close+0x139/frame 0xfffffe048b9b1960 vn_closefile() at vn_closefile+0x48/frame 0xfffffe048b9b19e0 _fdrop() at _fdrop+0x29/frame 0xfffffe048b9b1a00 closef() at closef+0x1d1/frame 0xfffffe048b9b1a90 closefp() at closefp+0xa0/frame 0xfffffe048b9b1ae0 ia32_syscall() at ia32_syscall+0x255/frame 0xfffffe048b9b1bf0 Xint0x80_syscall() at Xint0x80_syscall+0x95/frame 0xfffffe048b9b1bf0 --- syscall (6, FreeBSD ELF32, sys_close), rip = 0x210f7804, rsp = 0xffffcae4, rbp = 0xffffcb00 --- Uptime: 6d2h46m47s Dumping 1641 out of 16358 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%