division_by_0.c - a C program that catches the SIGFPE signal during a division by 0.
handling_sigint.c - a C program that catches the SIGINT signal whenever you press Ctrl+C during its execution.
more_signals.c - a C program that catches the SIGINT signal whenever you press Ctrl+C, catches the SIGTERM signal whenever another app or terminal calls the kill command of the ID of the process, ignores the SIGHUP signal, and resets the behavior for SIGPROF to the default.
sigaction_example.c - a C program that ignores the SIGINT signal using the sigaction() function.
issuing_signals.c - a C program that creates a child process and sends it the SIGINT signal via kill(). The child handles the SIGINT signal by calling the write() system call, which is reentrant. Finally, the parent sends a signal to itself using raise().
payload_sending.c - a C program that creates a child process and sends it the SIGUSR2 signal with an integer payload that the user types via the terminal using the sigqueue() function.
The command: gcc -Wall -Wextra -O2 -g -o program program.c
compiles the C source code located inside the file scheduling_examples.c. See more details here.
The command: . ./.short_prompt
executes code inside a file named .short_prompt and sources it (applies all the changes to the current session.) See more details here.
The command: . ./.long_prompt
executes code inside a file named .long_prompt and sources it (applies all the changes to the current session.) See more details here.
The command: kill -l
(- l is "dash L") display a list of the names of signals supported by the OS.
The command: kill -NAME PID
sends the signal NAME (e.g., HUP) to the process with id of PID.
The command: kill PID
sends the signal TERM (i.e., SIGTERM) to the process with id of PID.