modified enable_interrupts and added toggle/mask
final changes to 4.0.0
ignore interrupted system call