GNOME Bugzilla – Bug 769534
g_unix_signal_source_new does not support SIGWINCH
Last modified: 2017-04-08 05:02:57 UTC
I'm trying to use ptpython in combination with the gbulb asyncio loop. ptpython uses prompt_toolkit, which attempts to register a SIGWINCH handler with the event loop. gbulb calls g_unix_signal_source_new, which fails since SIGWINCH is not whitelisted.
I've been interested in why SIGWINCH is not supported as well. I've tried this a while ago when writing a ncurses application with a GLib event loop and would have found this useful. I've added SIGWINCH to the whitelist in my GLib source and it works fine for me. Is there a decision process in place that determines which signal numbers will be supported and which won't?
Created attachment 347540 [details] [review] [PATCH] g_unix_signal_source_new: Add SIGWINCH Assume this won't go into 2.52 anymore, so say it was added in 2.54.
Review of attachment 347540 [details] [review]: LGTM