[glib] g_unix_signal_source_new: Add SIGWINCH
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] g_unix_signal_source_new: Add SIGWINCH
- Date: Sat, 8 Apr 2017 05:02:45 +0000 (UTC)
commit 47a02c85610f4036681c9728b7339dcb08f64fc4
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date: Thu Mar 9 10:56:32 2017 +0100
g_unix_signal_source_new: Add SIGWINCH
Assume this won't go into 2.52 anymore, so say it was added in 2.54.
https://bugzilla.gnome.org/show_bug.cgi?id=769534
glib/glib-unix.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glib/glib-unix.c b/glib/glib-unix.c
index 6203889..d666a06 100644
--- a/glib/glib-unix.c
+++ b/glib/glib-unix.c
@@ -187,7 +187,7 @@ g_unix_set_fd_nonblocking (gint fd,
* Create a #GSource that will be dispatched upon delivery of the UNIX
* signal @signum. In GLib versions before 2.36, only `SIGHUP`, `SIGINT`,
* `SIGTERM` can be monitored. In GLib 2.36, `SIGUSR1` and `SIGUSR2`
- * were added.
+ * were added. In GLib 2.54, `SIGWINCH` was added.
*
* Note that unlike the UNIX default, all sources which have created a
* watch will be dispatched, regardless of which underlying thread
@@ -216,7 +216,8 @@ GSource *
g_unix_signal_source_new (int signum)
{
g_return_val_if_fail (signum == SIGHUP || signum == SIGINT || signum == SIGTERM ||
- signum == SIGUSR1 || signum == SIGUSR2, NULL);
+ signum == SIGUSR1 || signum == SIGUSR2 || signum == SIGWINCH,
+ NULL);
return _g_main_create_unix_signal_watch (signum);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]