diff options
author | Justus Winter <[email protected]> | 2016-09-05 11:50:17 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-09-05 12:05:19 +0000 |
commit | e33111fcdac08ed2ddfbdf59b1f790569b42f695 (patch) | |
tree | fe44a6f32435777fd1869f6bf25bb8e9c1784b4c /dirmngr | |
parent | common: Fix typo. (diff) | |
download | gnupg-e33111fcdac08ed2ddfbdf59b1f790569b42f695.tar.gz gnupg-e33111fcdac08ed2ddfbdf59b1f790569b42f695.zip |
common: Improve waiting for processes on POSIX.
* common/exechelp-posix.c (struct terminated_child): New definition.
(terminated_children): New variable.
(store_result): New function.
(get_result): Likewise.
(gnupg_wait_process): Store results that were not requested and
consider previously stored results.
waitpid(2) may return information about terminated children that we
did not yet request, and there is no portable way to wait for a
specific set of children. As a workaround, we store the results of
children for later use.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'dirmngr')
0 files changed, 0 insertions, 0 deletions