libnih: Drop SIGCLD

Its not portable, especially musl does not support it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2017-04-01 08:53:44 -07:00
committed by Martin Jansa
parent 401fbd9e50
commit 6c4caeee6f
2 changed files with 31 additions and 2 deletions
@@ -0,0 +1,28 @@
From f1b9992caf9910f9f7afae401045e42572cc84ff Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 1 Apr 2017 08:50:35 -0700
Subject: [PATCH] signal.c: SIGCLD and SIGCHILD are same on sytem V systems
Musl drops the SIGCLD legacy
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
nih/signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nih/signal.c b/nih/signal.c
index a241df9..691c8e6 100644
--- a/nih/signal.c
+++ b/nih/signal.c
@@ -87,7 +87,7 @@ static const SignalName signal_names[] = {
{ SIGSTKFLT, "STKFLT" },
#endif
{ SIGCHLD, "CHLD" },
- { SIGCLD, "CLD" },
+ { SIGCHLD, "CLD" },
{ SIGCONT, "CONT" },
{ SIGSTOP, "STOP" },
{ SIGTSTP, "TSTP" },
--
2.12.1
@@ -23,8 +23,9 @@ DEPENDS = "dbus libnih-native"
DEPENDS_class-native = "dbus-native"
SRC_URI = "https://launchpad.net/${BPN}/1.0/${PV}/+download/${BP}.tar.gz \
file://libnih_1.0.3-4ubuntu16.patch \
"
file://libnih_1.0.3-4ubuntu16.patch \
file://0001-signal.c-SIGCLD-and-SIGCHILD-are-same-on-sytem-V-sys.patch \
"
SRC_URI[md5sum] = "db7990ce55e01daffe19006524a1ccb0"
SRC_URI[sha256sum] = "897572df7565c0a90a81532671e23c63f99b4efde2eecbbf11e7857fbc61f405"