FreeBSD Bugzilla – Attachment 178670 Details for
Bug 215826
C++ program signal handlers not called
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Show sigprocmask, before and after exception
mask.cpp (text/x-c++src), 487 bytes, created by
Dominic Fandrey
on 2017-01-09 14:54:02 UTC
(
hide
)
Description:
Show sigprocmask, before and after exception
Filename:
MIME Type:
Creator:
Dominic Fandrey
Created:
2017-01-09 14:54:02 UTC
Size:
487 bytes
patch
obsolete
>#include <cstdio> >#include <signal.h> > >inline void print_mask(char const * const loc) { > sigset_t set; > sigprocmask(0, NULL, &set); > printf("%s/sigprocmask: %#08x%08x%08x%08x\n", loc, set.__bits[0], set.__bits[1], > set.__bits[2], set.__bits[3]); >} > >int main() { > try { > print_mask("main/try"); > throw 1; > } catch (int) { > print_mask("main/catch"); > } > printf("Raising signal: SIGINT\n"); > raise(SIGINT); > printf("Returning despite signal!\n"); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 215826
:
178664
| 178670 |
178720