aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-02-11 11:47:47 +0200
committerArnold D. Robbins <arnold@skeeve.com>2022-02-11 11:47:47 +0200
commit255f50dd5427a17e5277a30d98b0a1c5eaec6001 (patch)
tree95a94b431c4a0fc7bd8aff53cff862b628fc6ca8 /io.c
parent9b8d1fd59b0b4119097bb9943620804c12d1bf0a (diff)
parent938afb4d7acb9974d5789dfe4e322c0ccce0541e (diff)
downloadegawk-255f50dd5427a17e5277a30d98b0a1c5eaec6001.tar.gz
egawk-255f50dd5427a17e5277a30d98b0a1c5eaec6001.tar.bz2
egawk-255f50dd5427a17e5277a30d98b0a1c5eaec6001.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 1d440c1e..07d83689 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;
}
}