1
0
mirror of https://github.com/golang/go synced 2024-11-23 20:10:08 -07:00
go/src/os
Ian Lance Taylor 21b4f234c7 runtime: for c-archive/c-shared, install signal handlers synchronously
The previous behaviour of installing the signal handlers in a separate
thread meant that Go initialization raced with non-Go initialization if
the non-Go initialization also wanted to install signal handlers.  Make
installing signal handlers synchronous so that the process-wide behavior
is predictable.

Update #9896.

Change-Id: Ice24299877ec46f8518b072a381932d273096a32
Reviewed-on: https://go-review.googlesource.com/18150
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-01-09 00:58:38 +00:00
..
exec os/exec: document that examples assume Unix 2016-01-06 17:58:48 +00:00
signal runtime: for c-archive/c-shared, install signal handlers synchronously 2016-01-09 00:58:38 +00:00
user
dir_plan9.go
dir_unix.go
dir_windows.go
doc.go
env_test.go
env_unix_test.go
env.go
error_plan9.go os: make IsPermission, IsExist, and IsNotExist unwrap SyscallError too 2015-10-10 21:20:14 +00:00
error_test.go os: make IsPermission, IsExist, and IsNotExist unwrap SyscallError too 2015-10-10 21:20:14 +00:00
error_unix.go os: make IsPermission, IsExist, and IsNotExist unwrap SyscallError too 2015-10-10 21:20:14 +00:00
error_windows.go os: make IsPermission, IsExist, and IsNotExist unwrap SyscallError too 2015-10-10 21:20:14 +00:00
error.go os: add document for ErrInvalid 2015-11-13 01:09:10 +00:00
exec_plan9.go
exec_posix.go
exec_unix.go
exec_windows.go
exec.go
export_test.go
file_plan9.go os: fix rename on Plan 9 2016-01-08 14:22:47 +00:00
file_posix.go
file_unix.go os, runtime: better EPIPE behavior for command line programs 2016-01-05 00:32:50 +00:00
file_windows.go os: read only 10,000 bytes at a time from Windows console 2016-01-08 16:52:37 +00:00
file.go os: document that Rename overwrites existing file 2016-01-07 00:41:10 +00:00
getwd_darwin.go
getwd.go
os_test.go os: fix rename on Plan 9 2016-01-08 14:22:47 +00:00
os_unix_test.go os: make TestLchown actually test Lchown. 2015-12-14 22:42:55 +00:00
os_windows_test.go os: change Open(C:) to open current directory on C: 2015-12-31 00:20:54 +00:00
path_plan9.go
path_test.go os: disable symlink tests on android. 2015-10-20 22:18:23 +00:00
path_unix.go
path_windows.go
path.go
pipe_bsd.go
pipe_linux.go
pipe_test.go os: remove unused import to fix build 2016-01-05 01:21:26 +00:00
proc.go
stat_darwin.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
stat_dragonfly.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
stat_freebsd.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
stat_linux.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
stat_nacl.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
stat_netbsd.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
stat_openbsd.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
stat_plan9.go
stat_solaris.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
stat_windows.go os: fix race condition between (*os.File).Stat and os.Chdir on windows 2015-12-30 06:37:08 +00:00
sticky_bsd.go
sticky_notbsd.go
str.go
sys_bsd.go
sys_darwin.go
sys_freebsd.go
sys_linux.go
sys_nacl.go
sys_plan9.go
sys_solaris.go
sys_unix.go
sys_windows.go
types_plan9.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
types_unix.go os: reduce allocations in Readdir on unix 2015-10-30 19:47:55 +00:00
types_windows.go
types.go