apps/speed.c: Wait for generated children
authorJuergen Christ <jchrist@linux.ibm.com>
Mon, 29 Aug 2022 14:54:02 +0000 (16:54 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 31 Aug 2022 07:32:37 +0000 (09:32 +0200)
commit70d9e64b634673257ab64561e1c04ee8d1d4a24a
tree2651ee16df417df69379a64c31b6abe7afbe0958
parent05388908ddd34295b87dc8f396897b9620e0a6c8
apps/speed.c: Wait for generated children

In multi-mode, speed fork()s off several children but does not wait for them.
On Linux, this leads to wrong accounting information of getrusage used by
tools to extract running time and page faults.

Wait for every children and check the return code and termination signal.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19093)

(cherry picked from commit 56233ba8574c01b3912cf662335fedaabc7faec2)
apps/speed.c