Skip to content

ossig: Don't leak the callbacks in case the event loops are not stopped through SIGINT. Fixes #219

Christoph Reiter requested to merge sigint-fallback-leak into master

We didn't remove them if the event loops returned normally. This also fixes a small race where a SIGINT gets ignored right after the yield check and before the old handler is reinstated. Check after the signal handler is switched back instead.

This resulted in GLib.MainLoop and Gio.Aplication instances leaking.

Merge request reports