diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2012-10-14 23:05:30 -0500 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-11-28 14:44:09 +0000 |
commit | 2c712d094a49de0b96e2e9f5bcc1043b54ad0f61 (patch) | |
tree | 19fe9adb2c3e396f93781bc2a0cb3bc8855e42d3 /hw | |
parent | 98d5acc1213b2ec71c2a7bd3a3b77a1b5536e963 (diff) |
hw/xwin: use raise() instead of kill()
MinGW doesn't have kill(), so use raise() instead
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xwin/winclipboardthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xwin/winclipboardthread.c b/hw/xwin/winclipboardthread.c index 891278279..c8508a9b8 100644 --- a/hw/xwin/winclipboardthread.c +++ b/hw/xwin/winclipboardthread.c @@ -36,6 +36,7 @@ #define HAS_WINSOCK 1 #endif #include <sys/types.h> +#include <signal.h> #include "winclipboard.h" #ifdef __CYGWIN__ #include <errno.h> @@ -431,7 +432,7 @@ winClipboardProc(void *pvNotUsed) else { ErrorF("winClipboardProc - Clipboard disabled - Exit from server \n"); /* clipboard thread has exited, stop server as well */ - kill(getpid(), SIGTERM); + raise(SIGTERM); } return NULL; |