Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-12-19 05:46:17 +0300
committerJunio C Hamano <gitster@pobox.com>2022-12-19 05:46:17 +0300
commit4e09e0dae62f685935dd5b5dd0ec145b37d9cbe7 (patch)
treef439f53e20945987c23f390df83363e1184287b9 /run-command.c
parentab91f6b7c42531406bcca0e48c48530126332142 (diff)
parent786e67611d46cd761e1aaa73f85b62f3dda1960a (diff)
Merge branch 'sx/pthread-error-check-fix'
Correct pthread API usage. * sx/pthread-error-check-fix: maintenance: compare output of pthread functions for inequality with 0
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index 48b9ba6d6f..756f1839aa 100644
--- a/run-command.c
+++ b/run-command.c
@@ -1019,7 +1019,7 @@ static void *run_thread(void *data)
sigset_t mask;
sigemptyset(&mask);
sigaddset(&mask, SIGPIPE);
- if (pthread_sigmask(SIG_BLOCK, &mask, NULL) < 0) {
+ if (pthread_sigmask(SIG_BLOCK, &mask, NULL)) {
ret = error("unable to block SIGPIPE in async thread");
return (void *)ret;
}