summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-05-28 14:37:50 +0000
committerJoonas Niilola <juippis@gentoo.org>2023-05-29 15:37:30 +0300
commit1306b7c1abd59d1e60fc797cddd165919bac796c (patch)
tree9c0de23fcf125db79d18a79010aa75093b6859dd /x11-misc/wdm/files
parentdev-db/influxdb: fix UnquotedVariable in 2.7.1 (diff)
downloadgentoo-1306b7c1abd59d1e60fc797cddd165919bac796c.tar.gz
gentoo-1306b7c1abd59d1e60fc797cddd165919bac796c.tar.bz2
gentoo-1306b7c1abd59d1e60fc797cddd165919bac796c.zip
x11-misc/wdm: Replace sigsetmask with posix compliant functions
Closes: https://bugs.gentoo.org/898892 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31203 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'x11-misc/wdm/files')
-rw-r--r--x11-misc/wdm/files/wdm-1.28-remove-sigsetmask.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-misc/wdm/files/wdm-1.28-remove-sigsetmask.patch b/x11-misc/wdm/files/wdm-1.28-remove-sigsetmask.patch
new file mode 100644
index 000000000000..f76db846e597
--- /dev/null
+++ b/x11-misc/wdm/files/wdm-1.28-remove-sigsetmask.patch
@@ -0,0 +1,15 @@
+Please reffer https://www.openembedded.org/pipermail/openembedded-core/2011-July/044923.html
+--- a/src/wdm/util.c
++++ b/src/wdm/util.c
+@@ -113,8 +113,10 @@ CleanUpChild (void)
+ #ifdef CSRG_BASED
+ setsid();
+ #else
++ sigset_t sigmask;
+ setpgid (0, getpid ());
+- sigsetmask (0);
++ sigemptyset(&sigmask);
++ sigprocmask(SIG_SETMASK, &sigmask, NULL);
+ #endif
+ #ifdef SIGCHLD
+ (void) Signal (SIGCHLD, SIG_DFL);