Back to course

Signals and Interrupts

Full Course: Zig Programming From Zero to Hero

OS Signals

How to handle Ctrl+C (SIGINT) and other OS signals in Zig.

zig // Use std.os.sigaction for Unix-like systems