diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2022-02-10 15:00:24 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2022-02-10 15:00:24 -0500 |
commit | 938afb4d7acb9974d5789dfe4e322c0ccce0541e (patch) | |
tree | 39277f5007b758ce8cda31727c91391fd85b600d /io.c | |
parent | 438e6e6e6deb8f4831e84ffd17205dc14d3a2ebb (diff) | |
download | egawk-938afb4d7acb9974d5789dfe4e322c0ccce0541e.tar.gz egawk-938afb4d7acb9974d5789dfe4e322c0ccce0541e.tar.bz2 egawk-938afb4d7acb9974d5789dfe4e322c0ccce0541e.zip |
Fix bug in exit status returned by close for a previously exited process.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |