signal()

The signal function directs the occurrence of the signal to any of the following signal handlers:

Now, let's begin with the recipe.