]> gitweb.factorcode.org Git - factor.git/commit
vm: interrupt stdin_loop when entering fep
authorJoe Groff <arcata@gmail.com>
Tue, 8 Nov 2011 05:12:11 +0000 (21:12 -0800)
committerJoe Groff <arcata@gmail.com>
Tue, 8 Nov 2011 16:42:48 +0000 (08:42 -0800)
commitf9aa0419c4d5c90952268a54524c4fea10c564cb
tree3d00267445ac1af5f84f808f8a46eb7b27680b57
parent04c6b2c393ffc2fda27a1d3ddf4655d17cf95cc1
vm: interrupt stdin_loop when entering fep
The stdin_loop thread will keep trying to consume input unless we stop it by sending it a signal. Use SIGUSR2 to stop the read syscall and a mutex to hold up the loop while the fep is active.
vm/debug.cpp
vm/os-unix.cpp
vm/os-unix.hpp
vm/os-windows.cpp
vm/vm.hpp