]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct a bug introduced in sys_pipe.c:1.179: in pipe_ioctl(),
authorrwatson <rwatson@FreeBSD.org>
Tue, 23 Nov 2004 22:15:08 +0000 (22:15 +0000)
committerrwatson <rwatson@FreeBSD.org>
Tue, 23 Nov 2004 22:15:08 +0000 (22:15 +0000)
commit278f52e7a7437df96f1c2a2f1513356a05dcc7dc
tree6aec7035a982e1002ebf2c9544b9c9579506434d
parente0cb9607c5e7ba4f51e46e1fd4248f9058e1fa0b
Correct a bug introduced in sys_pipe.c:1.179: in pipe_ioctl(),
release the pipe mutex before calling fsetown(), as fsetown()
may block.  The sigio code protects the pipe sigio data using
its own mutex, and the pipe reference count held by the caller
will prevent the pipe from being prematurely garbage-collected.

Discovered by: imp
sys/kern/sys_pipe.c