Fix the issue with incorrect return values of some processes
This commit is contained in:
parent
bf54062bc7
commit
3830530bfc
@ -47,7 +47,7 @@
|
||||
Name: gawk
|
||||
Summary: The GNU version of the AWK text processing utility
|
||||
Version: 5.1.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
|
||||
License: GPLv3+ and GPLv2+ and LGPLv2+ and BSD
|
||||
|
||||
@ -115,7 +115,7 @@ BuildRequires: make
|
||||
# Upstream patches -- official upstream patches released by upstream since the
|
||||
# ---------------- last rebase that are necessary for any reason:
|
||||
#Patch000: example000.patch
|
||||
|
||||
Patch001: proc-rv.patch
|
||||
#Parts of the patch dealing with .info files, were removed, some parts of documentation might be broken
|
||||
|
||||
#Patch008: gawk-api-version.patch
|
||||
@ -289,6 +289,10 @@ install -m 0644 -p doc/gawkinet.{pdf,ps} %{buildroot}%{_docdir}/%{name}
|
||||
# =============================================================================
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Jakub Martisko <jamartis@redhat.com> - 5.1.0-6
|
||||
Fix the issue with incorect handling of return values of some processes
|
||||
Resolves: rhbz#2055107
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.1.0-5
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
22
proc-rv.patch
Normal file
22
proc-rv.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff --git a/io.c b/io.c
|
||||
index 1d440c1..07d8368 100644
|
||||
--- a/io.c
|
||||
+++ b/io.c
|
||||
@@ -2599,7 +2599,7 @@ wait_any(int interesting) /* pid of interest, if any */
|
||||
for (redp = red_head; redp != NULL; redp = redp->next)
|
||||
if (interesting == redp->pid) {
|
||||
redp->pid = -1;
|
||||
- redp->status = status;
|
||||
+ redp->status = sanitize_exit_status(status);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2629,7 +2629,7 @@ wait_any(int interesting) /* pid of interest, if any */
|
||||
for (redp = red_head; redp != NULL; redp = redp->next)
|
||||
if (pid == redp->pid) {
|
||||
redp->pid = -1;
|
||||
- redp->status = status;
|
||||
+ redp->status = sanitize_exit_status(status);
|
||||
break;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user