projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
85d19a9
)
snapshot: use perror()
author
Brian Norris
<banorris@uci.edu>
Fri, 19 Apr 2013 21:42:05 +0000
(14:42 -0700)
committer
Brian Norris
<banorris@uci.edu>
Fri, 19 Apr 2013 21:42:05 +0000
(14:42 -0700)
snapshot.cc
patch
|
blob
|
history
diff --git
a/snapshot.cc
b/snapshot.cc
index e5df30abe2ec39697a04cdc66241bda8b1c07d05..56bdeb1c4a0756899aa368412b969808e76f8c8a 100644
(file)
--- a/
snapshot.cc
+++ b/
snapshot.cc
@@
-148,12
+148,12
@@
static void mprot_snapshot_init(unsigned int numbackingpages,
sa.sa_sigaction = mprot_handle_pf;
#ifdef MAC
if (sigaction(SIGBUS, &sa, NULL) == -1) {
sa.sa_sigaction = mprot_handle_pf;
#ifdef MAC
if (sigaction(SIGBUS, &sa, NULL) == -1) {
-
model_print("SIGACTION CANNOT BE INSTALLED\n
");
+
perror("sigaction(SIGBUS)
");
exit(EXIT_FAILURE);
}
#endif
if (sigaction(SIGSEGV, &sa, NULL) == -1) {
exit(EXIT_FAILURE);
}
#endif
if (sigaction(SIGSEGV, &sa, NULL) == -1) {
-
model_print("SIGACTION CANNOT BE INSTALLED\n
");
+
perror("sigaction(SIGSEGV)
");
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}