1
0
mirror of https://github.com/golang/go synced 2024-10-04 13:21:22 -06: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 os/user: don't depend on _SC_GETPW_R_SIZE_MAX on Linux 2015-08-21 04:23:15 +00:00
dir_plan9.go
dir_unix.go
dir_windows.go
doc.go
env_test.go os: eradicate smallpox after test 2015-05-06 17:38:57 +00:00
env_unix_test.go
env.go os: add LookupEnv, like Getenv but reports presence 2015-05-05 21:05:12 +00:00
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 os: fix a race between Process.signal() and wait() on Windows 2015-06-11 01:33:25 +00:00
exec.go os: fix a race between Process.signal() and wait() on Windows 2015-06-11 01:33:25 +00:00
export_test.go
file_plan9.go os: fix rename on Plan 9 2016-01-08 14:22:47 +00:00
file_posix.go os: remove stuttering return value names 2015-07-18 01:34:21 +00:00
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 os: remove stuttering return value names 2015-07-18 01:34:21 +00:00
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 os: clarify that ModePerm permission bits are the Unix ones 2015-04-16 16:42:10 +00:00