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

Delta Between Two Patch Sets: src/pkg/runtime/signal_unix.c

Issue 7565048: code review 7565048: runtime: refactor os-specific code (Closed)
Left Patch Set: Created 12 years ago
Right Patch Set: diff -r 74da57c3abfe https://go.googlecode.com/hg Created 12 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/signal_unix.h ('k') | no next file » | 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 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
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 }
LEFTRIGHT

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