]> git.ipfire.org Git - thirdparty/openssl.git/commit
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:31:47 +0000 (09:31 +0200)
commit56233ba8574c01b3912cf662335fedaabc7faec2
tree4c04179334fe8893ab94af1507e1fb1184cdd69d
parentd9aca2dd9b56dbfa6a0566cc3ad8b7c713ac61b2
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)
apps/speed.c