LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 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 #include "runtime.h" | 5 #include "runtime.h" |
6 #include "defs.h" | 6 #include "defs.h" |
7 #include "signals.h" | 7 #include "signals.h" |
8 #include "os.h" | 8 #include "os.h" |
9 | 9 |
10 void | 10 void |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 sigaction(SIGPROF, SIG_IGN, true); | 178 sigaction(SIGPROF, SIG_IGN, true); |
179 } else { | 179 } else { |
180 sigaction(SIGPROF, runtime·sighandler, true); | 180 sigaction(SIGPROF, runtime·sighandler, true); |
181 it.it_interval.tv_sec = 0; | 181 it.it_interval.tv_sec = 0; |
182 it.it_interval.tv_usec = 1000000 / hz; | 182 it.it_interval.tv_usec = 1000000 / hz; |
183 it.it_value = it.it_interval; | 183 it.it_value = it.it_interval; |
184 runtime·setitimer(ITIMER_PROF, &it, nil); | 184 runtime·setitimer(ITIMER_PROF, &it, nil); |
185 } | 185 } |
186 m->profilehz = hz; | 186 m->profilehz = hz; |
187 } | 187 } |
| 188 |
| 189 void |
| 190 os·sigpipe(void) |
| 191 { |
| 192 sigaction(SIGPIPE, SIG_DFL, false); |
| 193 runtime·raisesigpipe(); |
| 194 } |
LEFT | RIGHT |