sys-apps/dbus-stub: add
[sgilles-overlay.git] / app-i18n / fbterm / files / fbterm-1.7-0004-do-not-use-WAIT_ANY.patch
blob508e7a715345d9cbc4a3e66be66e2b9c5cc13c8b
1 From 77922547a2f49e0f285f4361ecf4f4b06b65632f Mon Sep 17 00:00:00 2001
2 From: "S. Gilles" <sgilles@carrastro.com>
3 Date: Sat, 25 Jun 2016 23:36:59 +0000
4 Subject: [PATCH 4/4] do not use WAIT_ANY
6 ---
7 src/fbterm.cpp | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/src/fbterm.cpp b/src/fbterm.cpp
11 index 748f38d..a79c28f 100644
12 --- a/src/fbterm.cpp
13 +++ b/src/fbterm.cpp
14 @@ -209,7 +209,7 @@ void FbTerm::processSignal(u32 signo)
16 case SIGCHLD:
17 if (mRun) {
18 - s32 pid = waitpid(WAIT_ANY, 0, WNOHANG);
19 + s32 pid = waitpid(-1, 0, WNOHANG);
20 if (pid > 0) {
21 FbShellManager::instance()->childProcessExited(pid);
23 --
24 2.9.0