aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-02-11 11:48:43 +0200
committerArnold D. Robbins <arnold@skeeve.com>2022-02-11 11:48:43 +0200
commit8d9d0c5ba78546704658351d2d8e9aa626bb0383 (patch)
tree13d03d31d4d92a6d903e4cb748c2fce69be8c632 /io.c
parent114ec84761d3c856ae7d9402dcd6165a988d0a19 (diff)
parent255f50dd5427a17e5277a30d98b0a1c5eaec6001 (diff)
downloadegawk-8d9d0c5ba78546704658351d2d8e9aa626bb0383.tar.gz
egawk-8d9d0c5ba78546704658351d2d8e9aa626bb0383.tar.bz2
egawk-8d9d0c5ba78546704658351d2d8e9aa626bb0383.zip
Merge branch 'master' into feature/docit
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;
}
}