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_GOOS_GOARCH.h" | 6 #include "defs_GOOS_GOARCH.h" |
7 #include "os_GOOS.h" | 7 #include "os_GOOS.h" |
8 #include "stack.h" | 8 #include "stack.h" |
9 | 9 |
10 extern SigTab runtime·sigtab[]; | 10 extern SigTab runtime·sigtab[]; |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 runtime·badcallback(void) | 495 runtime·badcallback(void) |
496 { | 496 { |
497 runtime·write(2, badcallback, sizeof badcallback - 1); | 497 runtime·write(2, badcallback, sizeof badcallback - 1); |
498 } | 498 } |
499 | 499 |
500 static int8 badsignal[] = "runtime: signal received on thread not created by Go.
\n"; | 500 static int8 badsignal[] = "runtime: signal received on thread not created by Go.
\n"; |
501 | 501 |
502 // This runs on a foreign stack, without an m or a g. No stack split. | 502 // This runs on a foreign stack, without an m or a g. No stack split. |
503 #pragma textflag 7 | 503 #pragma textflag 7 |
504 void | 504 void |
505 runtime·badsignal(void) | 505 runtime·badsignal(int32 sig) |
506 { | 506 { |
| 507 » if (sig == SIGPROF) { |
| 508 » » return; // Ignore SIGPROFs intended for a non-Go thread. |
| 509 » } |
507 runtime·write(2, badsignal, sizeof badsignal - 1); | 510 runtime·write(2, badsignal, sizeof badsignal - 1); |
508 } | 511 » runtime·exit(1); |
| 512 } |
LEFT | RIGHT |