Elektrine lite

← Feed

@mkwt@lemmy.world

Post #1665458

2026-01-15 01:11 UTC

Windows does, in fact, have signals. They're just not all the same as Unix signals, and the behavior is different. Here's a [write-up](https://stackoverflow.com/questions/72258181/ctrl-c-event-vs-ctrl-break-event-vs-terminateprocess-on-windows). You're correct there is no "please terminate but you don't have to" signal in Windows. Windowless processes sometimes make up their own nonstandard events to implement the functionality. As you mentioned, windowed processes have WM_CLOSE. Memory access violations (akin to SIGSEGV), and other system exceptions can be handled through Structured Exception Handling.

Replies (1)

  • @Scoopta@programming.dev 2026-01-15 01:17

    TIL about the console signaling stuff, good to know. I am aware of SEH but that seemed a little too in the weeds for this discussion since that's as you say akin to SIGSEGV

    Open ##1665464