serpent-os / boulder-d-legacy

Replaced by Rust tooling
https://serpentos.com
21 stars 7 forks source link

mason/util: Use sigaction instead of signal to catch SIGINT #62

Closed joebonrichie closed 1 year ago

joebonrichie commented 1 year ago

Use of signal is discouraged due to portability concerns.

Initalize sigaction_t with our sigIntHandler and sigaction will call it if a SIGINT is received, matching the previous behaviour.

ermo commented 1 year ago

LGTM, thanks!