SWI-Prolog Did You Know Did you know? SWI-Prolog can handle Unix signals Search Documentation:
Notes on Using Foreign Code