Added exercise for signal handler

This commit is contained in:
Fabio Scotto di Santolo
2025-08-22 16:02:54 +02:00
parent 035027ad06
commit 331308b2d8
4 changed files with 140 additions and 0 deletions

View File

@@ -75,6 +75,21 @@ This is an organized list of all exercises completed so far, including a brief d
---
## 🚦 signal_handler
**Description**: A C program demonstrating robust signal handling for `SIGINT` and `SIGUSR1` using `sigaction` with `SA_SIGINFO`.
- 📄 [README](signal_handler/README.md)
- 📂 Directory: `signal_handler/`
- ✅ Features:
- Handles `SIGINT` up to three times before exiting
- Handles `SIGUSR1` with a simple message
- Masks signals during handler execution to avoid reentrancy issues
- Includes comments and clear separation of handler logic
- Makefile included with standard targets
---
## 🔧 Tooling & Automation
**Shared tools and scripts used across projects**: