The GNU Bourne-Again SHell - Patches: patch #10341, waiting on background subshells is...
You are not allowed to post comments on this tracker with your current authentication level.
patch #10341: waiting on background subshells is possible only with a side effect of a pipeline
Submitter: | Ilguiz Latypov <ilgiz> | ||
Submitted: | Wed 10 May 2023 08:20:22 PM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Invalid | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Fri 12 May 2023 03:18:02 PM UTC, comment #2: |
Chet Ramey <chet> |
Thu 11 May 2023 06:03:54 PM UTC, comment #1: Using "wait" inside the subshell that spawns background subshells works.
|
Ilguiz Latypov <ilgiz> |
Wed 10 May 2023 08:20:22 PM UTC, original submission:
Changing the redirect of a subshell to a pipeline with a "cat" has a useful side effect of waiting on background subshells.
|
Ilguiz Latypov <ilgiz> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-05-12 | chet | Status | None | Invalid |
Powered by Savane 3.13-02a9.
Corresponding source code
You cannot use `wait' (or any of the POSIX process management APIs that underly it) to wait for and reap children of another process.
This means, for instance, that you can't wait for grandchildren. Only the process that forked the child and is its parent can wait for it or be notified when it exits.