]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
arg: Flush log before exiting after usage() (#25504)
authorChristian Kastner <redacted>
Tue, 14 Jul 2026 09:03:22 +0000 (11:03 +0200)
committerGitHub <redacted>
Tue, 14 Jul 2026 09:03:22 +0000 (12:03 +0300)
commitec0dbef81632bb4233971fe83d91cf0accbfd882
treec2bb83aa50e0ed6668e83dca32e4a91ed53bc2e1
parentc1063ac9d75fe9238c82de94fc4b1f58b2cc6196
arg: Flush log before exiting after usage() (#25504)

Under certain conditions, it's possible for messages emitted via LOG()
to get lost before exit, apparently because they are emitted by another
thread. common_params_print_usage() uses printf directly, and is not
affected.

Flushing the log before exit seems to resolve this.
common/arg.cpp