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

Side by Side Diff: src/pkg/runtime/linux/386/signal.c

Issue 4452046: code review 4452046: runtime: turn "too many EPIPE" into real SIGPIPE (Closed)
Patch Set: diff -r 3c60a27e84c5 https://go.googlecode.com/hg Created 14 years 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:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/freebsd/os.h ('k') | src/pkg/runtime/linux/386/sys.s » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 sigaction(SIGPROF, SIG_IGN, true); 168 sigaction(SIGPROF, SIG_IGN, true);
169 } else { 169 } else {
170 sigaction(SIGPROF, runtime·sighandler, true); 170 sigaction(SIGPROF, runtime·sighandler, true);
171 it.it_interval.tv_sec = 0; 171 it.it_interval.tv_sec = 0;
172 it.it_interval.tv_usec = 1000000 / hz; 172 it.it_interval.tv_usec = 1000000 / hz;
173 it.it_value = it.it_interval; 173 it.it_value = it.it_interval;
174 runtime·setitimer(ITIMER_PROF, &it, nil); 174 runtime·setitimer(ITIMER_PROF, &it, nil);
175 } 175 }
176 m->profilehz = hz; 176 m->profilehz = hz;
177 } 177 }
178
179 void
180 os·sigpipe(void)
181 {
182 sigaction(SIGPIPE, SIG_DFL, false);
183 runtime·raisesigpipe();
184 }
OLDNEW
« no previous file with comments | « src/pkg/runtime/freebsd/os.h ('k') | src/pkg/runtime/linux/386/sys.s » ('j') | no next file with comments »

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