gegl r2750 - in trunk: . gegl
- From: schumaml svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2750 - in trunk: . gegl
- Date: Fri, 14 Nov 2008 21:03:57 +0000 (UTC)
Author: schumaml
Date: Fri Nov 14 21:03:57 2008
New Revision: 2750
URL: http://svn.gnome.org/viewvc/gegl?rev=2750&view=rev
Log:
* gegl/gegl-init.c (pid_is_running): added Microsoft Windows version of this function.
Modified:
trunk/ChangeLog
trunk/gegl/gegl-init.c
Modified: trunk/gegl/gegl-init.c
==============================================================================
--- trunk/gegl/gegl-init.c (original)
+++ trunk/gegl/gegl-init.c Fri Nov 14 21:03:57 2008
@@ -35,9 +35,16 @@
#ifdef G_OS_WIN32
- /*I guess what is below doesn't work on win32 ...
- or does it overlap with posix here somehow?*/
- eeeeeek();
+#include <windows.h>
+
+static inline gboolean
+pid_is_running (gint pid)
+{
+ HANDLE h;
+
+ h = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
+ return (TerminateProcess(h, 0));
+}
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]