diff options
author | Arnon Gilboa <agilboa@redhat.com> | 2013-01-31 11:17:40 +0200 |
---|---|---|
committer | Arnon Gilboa <agilboa@redhat.com> | 2013-01-31 11:34:14 +0200 |
commit | 2d03cc5c2c8cf4e6acccdb7906af7ae61e97d47c (patch) | |
tree | 5acd0c57eda82b3f65407ba1aeb4d15ca508cd4a /common | |
parent | 05af7a9786507cd729cb7505e5b103b47aa29852 (diff) |
vdservice stops vdagent via event
Terminate agent politely instead of ugly TerminateProcess(), so now
VD_AGENT_CLIPBOARD_RELEASE is sent (if guest owned the clipboard),
followed by cleanup.
rhbz #903379
Diffstat (limited to 'common')
-rw-r--r-- | common/vdcommon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/vdcommon.h b/common/vdcommon.h index cc3bd3d..605153d 100644 --- a/common/vdcommon.h +++ b/common/vdcommon.h @@ -33,6 +33,7 @@ typedef CRITICAL_SECTION mutex_t; #define MUTEX_UNLOCK(mutex) LeaveCriticalSection(&mutex) #define VD_AGENT_REGISTRY_KEY "SOFTWARE\\Red Hat\\Spice\\vdagent\\" +#define VD_AGENT_STOP_EVENT TEXT("Global\\vdagent_stop_event") #if defined __GNUC__ #define ALIGN_GCC __attribute__ ((packed)) |