|
os/signal: selective signal handling
Restore package os/signal, with new API:
Notify replaces Incoming, allowing clients
to ask for certain signals only. Also, signals
go to everyone who asks, not just one client.
This could plausibly move into package os now
that there are no magic side effects as a result
of the import.
Update runtime for new API: move common Unix
signal handling code into signal_unix.c.
(It's so easy to do this now that we don't have
to edit Makefiles!)
Tested on darwin,linux 386,amd64.
Fixes issue 1266.
Total comments: 26
Total comments: 51
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1218 lines, -1268 lines) |
Patch |
|
M |
doc/go1.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
M |
doc/go1.tmpl
|
View
|
1
2
3
4
5
6
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
R |
src/pkg/exp/signal/signal.go
|
View
|
1
|
1 chunk |
+0 lines, -37 lines |
0 comments
|
Download
|
|
R |
src/pkg/exp/signal/signal_test.go
|
View
|
1
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
|
M |
src/pkg/net/http/cgi/host_test.go
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/os/exec.go
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/os/exec_posix.go
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/pkg/os/exec_unix.go
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/os/exec_windows.go
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
A |
src/pkg/os/signal/sig.s
|
View
|
1
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pkg/os/signal/signal.go
|
View
|
1
2
3
4
5
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pkg/os/signal/signal_test.go
|
View
|
1
2
3
4
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/pkg/os/signal/signal_unix.go
|
View
|
1
2
3
4
5
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/os_darwin.h
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/os_freebsd.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/os_linux.h
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/os_netbsd.h
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/os_openbsd.h
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/runtime.h
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/runtime.c
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
R |
src/pkg/runtime/sig.go
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_darwin_386.c
|
View
|
1
2
3
4
|
7 chunks |
+14 lines, -67 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_darwin_amd64.c
|
View
|
1
2
3
4
|
7 chunks |
+16 lines, -69 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_freebsd_386.c
|
View
|
1
2
3
4
|
6 chunks |
+14 lines, -61 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_freebsd_amd64.c
|
View
|
1
2
3
4
|
6 chunks |
+13 lines, -69 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_linux_386.c
|
View
|
1
2
3
4
|
6 chunks |
+17 lines, -65 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_linux_amd64.c
|
View
|
1
2
3
4
|
6 chunks |
+14 lines, -63 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_linux_arm.c
|
View
|
1
2
3
4
|
3 chunks |
+2 lines, -58 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_netbsd_386.c
|
View
|
1
2
3
4
|
5 chunks |
+14 lines, -69 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_netbsd_amd64.c
|
View
|
1
2
3
4
|
6 chunks |
+14 lines, -70 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_openbsd_386.c
|
View
|
1
2
3
4
|
5 chunks |
+14 lines, -69 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_openbsd_amd64.c
|
View
|
1
2
3
4
|
6 chunks |
+14 lines, -70 lines |
0 comments
|
Download
|
|
A |
src/pkg/runtime/signal_unix.c
|
View
|
1
2
3
4
5
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_windows_386.c
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signal_windows_amd64.c
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signals_darwin.h
|
View
|
1
2
3
4
|
1 chunk |
+35 lines, -38 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signals_freebsd.h
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -43 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signals_linux.h
|
View
|
1
2
3
4
|
1 chunk |
+68 lines, -38 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signals_netbsd.h
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -43 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/signals_openbsd.h
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -43 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/sigqueue.goc
|
View
|
1
2
3
4
5
|
2 chunks |
+79 lines, -29 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/sys_linux_386.s
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/sys_linux_amd64.s
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/sys_linux_arm.s
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/thread_plan9.c
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/syscall/mkerrors.sh
|
View
|
1
2
3
4
5
|
4 chunks |
+54 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/syscall_bsd.go
|
View
|
1
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/syscall_darwin.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/syscall/syscall_linux.go
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/syscall_unix.go
|
View
|
1
2
3
4
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zerrors_darwin_386.go
|
View
|
1
2
3
4
5
|
10 chunks |
+85 lines, -46 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zerrors_darwin_amd64.go
|
View
|
1
5
|
3 chunks |
+71 lines, -32 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zerrors_linux_386.go
|
View
|
1
2
3
4
5
|
8 chunks |
+79 lines, -39 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zerrors_linux_amd64.go
|
View
|
1
2
3
4
5
|
8 chunks |
+79 lines, -39 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zsyscall_freebsd_386.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zsyscall_freebsd_amd64.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zsyscall_linux_386.go
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zsyscall_linux_amd64.go
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zsyscall_linux_arm.go
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zsysnum_linux_386.go
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/pkg/syscall/zsysnum_linux_amd64.go
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
Total messages: 24
|