Files
sys/unix
Ian Lance Taylor 5829c74886 unix: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall
This avoids hanging when a Go program uses a FUSE filesystem and the
dup system call has to close a file descriptor.  When dup uses
RawSyscall then the goroutine calling dup will occupy a scheduler slot
(a p structure) during the call, and may block waiting for some other
goroutine to respond to the close call on the FUSE filesystem.
Changing to Syscall avoids the problem.  This makes Dup a tiny bit
slower but is quite unlikely to make a difference for any real
programs.

Update golang/go#10202.

Change-Id: I590c5c9a04e0a1281a85dc553c7592fa83949ac7
Reviewed-on: https://go-review.googlesource.com/8056
Reviewed-by: Rob Pike <r@golang.org>
2015-03-26 17:59:35 +00:00
..
2014-10-01 12:10:37 -07:00
2014-08-11 15:58:26 -07:00
2014-08-11 15:58:26 -07:00
2014-08-11 15:58:26 -07:00
2014-08-13 10:02:35 -07:00
2014-12-09 22:46:33 +00:00
2014-08-11 15:58:26 -07:00
2014-08-11 15:58:26 -07:00
2014-08-11 15:58:26 -07:00
2014-08-11 15:58:26 -07:00
2014-08-11 15:58:26 -07:00