Did you know? SWI-Prolog can handle Unix signalsSearch Documentation:
SWI-Prolog owl logoPredicate profile/3