From 82fc07b7baa6f9e188025cc06a87ebc60a6f2d5e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 4 Nov 2010 02:35:15 +0100 Subject: mingw: add kill emulation This is a quite limited kill-emulation; it can only handle SIGTERM on positive pids. However, it's enough for git-daemon. Signed-off-by: Erik Faye-Lund Signed-off-by: Junio C Hamano --- compat/mingw.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compat/mingw.h') diff --git a/compat/mingw.h b/compat/mingw.h index 379d7bff2c..51fca2f845 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -143,6 +143,9 @@ static inline int mingw_unlink(const char *pathname) #define WNOHANG 1 pid_t waitpid(pid_t pid, int *status, unsigned options); +#define kill mingw_kill +int mingw_kill(pid_t pid, int sig); + #ifndef NO_OPENSSL #include static inline int mingw_SSL_set_fd(SSL *ssl, int fd) -- cgit v1.2.3