Lecture 17-18 – UNIX Signals Vocabulary

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/33

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering core UNIX signal concepts, common signals, handling APIs, and best-practice terminology from Lectures 17-18.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

34 Terms

1
New cards

kill (command)

Shell utility that ends, pauses, or continues a process by sending it a signal.

2
New cards

SIGTERM

Default signal sent by kill; politely asks a process to terminate.

3
New cards

SIGSTOP

Signal that pauses (stops) a process; cannot be caught or ignored.

4
New cards

SIGCONT

Signal that resumes a process previously stopped by SIGSTOP or SIGTSTP.

5
New cards

Ctrl-C

Terminal shortcut that sends the SIGINT signal to the foreground process.

6
New cards

SIGINT

Interrupt signal (Ctrl-C) that by default terminates the process.

7
New cards

Signal

Asynchronous notification sent by the OS/CPU to a process to indicate an event.

8
New cards

Pending Signals

32-bit bitmap in the kernel marking signals generated but not yet delivered.

9
New cards

Blocked Signals

32-bit bitmap specifying signals a process is temporarily ignoring.

10
New cards

Signal Handler

User-defined function executed when a specified signal is delivered to a process.

11
New cards

Default Handler

Built-in action the kernel performs for a signal when no custom handler exists.

12
New cards

SIGKILL

Non-catchable, non-ignorable signal that forcefully terminates a process.

13
New cards

SIGHUP

"Hang up" signal sent when a controlling terminal or remote connection is lost.

14
New cards

SIGPIPE

Signal raised when writing to a pipe whose reading end has closed.

15
New cards

SIGTSTP / SIGSTP

Signal sent by Ctrl-Z that suspends (pauses) the foreground process.

16
New cards

SIGQUIT

Signal sent by Ctrl-\ that terminates a process and creates a core dump.

17
New cards

Async-Signal-Safe Function

Library routine guaranteed to be safely callable from inside a signal handler (e.g., write).

18
New cards

SIG_DFL

Constant passed to signal()/sigaction() to restore a signal's default behavior.

19
New cards

SIG_IGN

Constant passed to signal()/sigaction() to make a process ignore a signal.

20
New cards

SIGUSR1

User-defined signal 1 with no predefined action; available for application use.

21
New cards

SIGUSR2

User-defined signal 2 with no predefined action; available for application use.

22
New cards

Hardware Interrupt

CPU-level event (e.g., key press, device ready) that suspends current execution to run an interrupt service routine.

23
New cards

Exception

CPU-detected error (e.g., divide by zero) that triggers a kernel handler and often results in a signal to the process.

24
New cards

SIGFPE

Signal sent to a process after a floating-point exception such as divide-by-zero.

25
New cards

SIGSEGV

Signal sent when a process performs an invalid memory access (segmentation fault).

26
New cards

sigprocmask()

System call used to block or unblock specified signals for the calling process.

27
New cards

Last-In First-Out Signal Handling

Strategy where a newly arrived signal preempts the handler currently running (stack-style).

28
New cards

Block-and-Queue Strategy

Approach that defers additional signals until the current handler finishes, then delivers them in order.

29
New cards

sigaction()

Advanced API for installing signal handlers with extra control and reliability.

30
New cards

sa_handler

Field in struct sigaction specifying the function (or SIGDFL/SIGIGN) to run when the signal occurs.

31
New cards

sa_sigaction

Alternate field giving a handler that receives extra context information (siginfo_t *).

32
New cards

sa_flags

Bitmask in struct sigaction controlling options such as whether to use sa_sigaction.

33
New cards

sa_mask

Signal set in struct sigaction listing additional signals to block while the handler runs.

34
New cards

Mousetrap Problem

Historical issue where a handler had to reinstall itself, risking missed signals if another arrived before reinstallation.