HomePhabricator

util: Don't reference errno when pthread fails.

Description

util: Don't reference errno when pthread fails.

Summary:
Pthread library does not set errno.
Pthread library's errno is returned by return value.

Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>

This is a backport of core#19194

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D9524

Details

Provenance
MIZUTA Takeshi <mizuta.takeshi@fujitsu.com>Authored on May 14 2021, 06:35
PiRKCommitted on May 14 2021, 06:36
abc-botPushed on May 14 2021, 06:42
Reviewer
Restricted Project
Differential Revision
D9524: util: Don't reference errno when pthread fails.
Parents
rABC49ccd05ff3f1: test: disconnect_nodes should warn if nodes were already disconnected
Branches
Unknown
Tags
Unknown