X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=snapshot.cc;h=56bdeb1c4a0756899aa368412b969808e76f8c8a;hb=96e582635a31771d6d6e32ffb0fc454c6df22759;hp=e5df30abe2ec39697a04cdc66241bda8b1c07d05;hpb=85d19a94bbe42390e82837ba75df5c39211a26f5;p=model-checker.git diff --git a/snapshot.cc b/snapshot.cc index e5df30a..56bdeb1 100644 --- 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) { - model_print("SIGACTION CANNOT BE INSTALLED\n"); + perror("sigaction(SIGBUS)"); exit(EXIT_FAILURE); } #endif if (sigaction(SIGSEGV, &sa, NULL) == -1) { - model_print("SIGACTION CANNOT BE INSTALLED\n"); + perror("sigaction(SIGSEGV)"); exit(EXIT_FAILURE); }