diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-12-19 05:46:17 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-12-19 05:46:17 +0300 |
commit | 4e09e0dae62f685935dd5b5dd0ec145b37d9cbe7 (patch) | |
tree | f439f53e20945987c23f390df83363e1184287b9 /run-command.c | |
parent | ab91f6b7c42531406bcca0e48c48530126332142 (diff) | |
parent | 786e67611d46cd761e1aaa73f85b62f3dda1960a (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.c | 2 |
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; } |