Nguyễn Thái Ngọc Duy  <[email protected]> writes:

> Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
> ---

> @@ -2020,7 +2018,7 @@ static void ll_find_deltas(struct object_entry **list, 
> unsigned list_size,
>               ret = pthread_create(&p[i].thread, NULL,
>                                    threaded_find_deltas, &p[i]);
>               if (ret)
> -                     die("unable to create thread: %s", strerror(ret));
> +                     die_errno("unable to create thread");

This deserves a mention in the log message.  pthread_create()
returns 0 on success and it returns "an error number" on error.  We
used to format that returned value with strerror().

I do not see anywhere in the updated code that copies ret back to
errno, which would mean die_errno() would use whatever happens to be
in errno, and the relationship between the returned value 'ret' and
the value that is in 'errno' at this point in the code is unclear to
me.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to