]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/os-unix.cpp
VM: implement a ctrl-break handler thread (#1573)
[factor.git] / vm / os-unix.cpp
index 7c018eee0db22f5253ad01ed0b83dc3737c0a055..5d030d2c8e5c9aae60a9a4ccd891f66ae716a748 100644 (file)
@@ -474,6 +474,14 @@ void handle_ctrl_c() {
   sigaction_safe(SIGINT, &fep_sigaction, NULL);
 }
 
+void factor_vm::primitive_disable_ctrl_break() {
+  stop_on_ctrl_break = false;
+}
+
+void factor_vm::primitive_enable_ctrl_break() {
+  stop_on_ctrl_break = true;
+}
+
 void abort() {
   sig_t ret;
   do {