The following is from the man page of signal
The behavior of signal() varies across UNIX versions, and has also varied historical