From 6138de6b2cfa59d3b13a3170d865eb07d496fc0f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 2 May 2022 16:35:55 +0200 Subject: Write profile information in one call to write() Unfortunately, the complicated series of nested printf()s doesn't work well from multiple processes. --- src/im-sandbox.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/im-sandbox.c b/src/im-sandbox.c index ace58499..bd3f47e7 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -463,9 +463,7 @@ static int run_work(const struct index_args *iargs, Stream *st, * eventually be freed by image_free() under process_image() */ if ( sb->profile ) { - pthread_mutex_lock(&sb->shared->term_lock); profile_print_and_reset(); - pthread_mutex_unlock(&sb->shared->term_lock); } } -- cgit v1.2.3