Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a signal in the context of Linux programming?
Think about events that might require a user program to take action.
Explain the difference between SIGINT and SIGTERM.
Consider how you would want a program to behave when asked to stop.
What signal is generated by pressing Ctrl+C?
Think of what the user intends to do when they press Ctrl+C.
Signals can be ignored by processes.
Consider whether all signals can be handled the same way.
Describe the implications of ignoring SIGTERM in a long-running application.
Think about what happens if a process does not clean up after itself.
Create a program that handles multiple signals and executes different actions for each.
Consider defining different functions for handling different signals.
2 more questions in this section. Enroll free to practise them all.
Enroll free