Clean up pthread_create() error handling
commit2179045fd02acca83127f8d15ccd0eeb70b17400
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 3 Nov 2018 08:48:50 +0000 (3 09:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Nov 2018 04:42:11 +0000 (5 13:42 +0900)
tree9fdc037f4ae68e04712ddc63d77d5a2955471674
parentf5c4a9af45fa47130c730a5da87e030d040f000b
Clean up pthread_create() error handling

Normally pthread_create() rarely fails. But with new pthreads wrapper,
pthread_create() will return ENOSYS on a system without thread support.

Threaded code _is_ protected by HAVE_THREADS and pthread_create()
should never run in the first place. But the situation could change in
the future and bugs may sneak in. Make sure that all pthread_create()
reports the error cause.

While at there, mark these strings for translation if they aren't.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
name-hash.c
preload-index.c
run-command.c