diff options
author | Johannes Sixt <j6t@kdbg.org> | 2016-05-01 21:08:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-02 11:22:24 -0700 |
commit | f924b52a7779038cee94151f0c1ee144652bccbe (patch) | |
tree | 6498f8cd74cb9ddbf0c30be6d0f6fb99113cc327 /compat/win32 | |
parent | t5504: drop sigpipe=ok from push tests (diff) | |
download | tgif-f924b52a7779038cee94151f0c1ee144652bccbe.tar.xz |
Windows: add pthread_sigmask() that does nothing
A previous change introduced a call to pthread_sigmask() in order to block
SIGPIPE in a thread. Since there are no signal facilities on Windows that
are similar to POSIX signals, just ignore the request to block the signal.
In the particular case, the effect of blocking SIGPIPE on POSIX is that
write() calls return EPIPE when the reader closes the pipe. This is how
write() behaves on Windows.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/win32')
-rw-r--r-- | compat/win32/pthread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/win32/pthread.h b/compat/win32/pthread.h index 8ad187344f..e74157cd4d 100644 --- a/compat/win32/pthread.h +++ b/compat/win32/pthread.h @@ -101,4 +101,9 @@ static inline void *pthread_getspecific(pthread_key_t key) return TlsGetValue(key); } +static inline int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) +{ + return 0; +} + #endif /* PTHREAD_H */ |