LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // +build darwin freebsd linux openbsd netbsd | 5 // +build darwin freebsd linux openbsd netbsd |
6 | 6 |
7 #include "runtime.h" | 7 #include "runtime.h" |
8 #include "defs_GOOS_GOARCH.h" | 8 #include "defs_GOOS_GOARCH.h" |
9 #include "os_GOOS.h" | 9 #include "os_GOOS.h" |
| 10 #include "signal_unix.h" |
10 | 11 |
11 extern SigTab runtime·sigtab[]; | 12 extern SigTab runtime·sigtab[]; |
12 | 13 |
13 void | 14 void |
14 runtime·initsig(void) | 15 runtime·initsig(void) |
15 { | 16 { |
16 int32 i; | 17 int32 i; |
17 SigTab *t; | 18 SigTab *t; |
18 | 19 |
19 // First call: basic setup. | 20 // First call: basic setup. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } | 62 } |
62 m->profilehz = hz; | 63 m->profilehz = hz; |
63 } | 64 } |
64 | 65 |
65 void | 66 void |
66 os·sigpipe(void) | 67 os·sigpipe(void) |
67 { | 68 { |
68 runtime·setsig(SIGPIPE, SIG_DFL, false); | 69 runtime·setsig(SIGPIPE, SIG_DFL, false); |
69 runtime·raisesigpipe(); | 70 runtime·raisesigpipe(); |
70 } | 71 } |
LEFT | RIGHT |