Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(102)

Delta Between Two Patch Sets: src/pkg/runtime/linux/amd64/signal.c

Issue 4452046: code review 4452046: runtime: turn "too many EPIPE" into real SIGPIPE (Closed)
Left Patch Set: Created 13 years, 11 months ago
Right Patch Set: diff -r 3c60a27e84c5 https://go.googlecode.com/hg Created 13 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/linux/386/sys.s ('k') | src/pkg/runtime/linux/amd64/sys.s » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b