gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11835 - Extractor/src/main


From: gnunet
Subject: [GNUnet-SVN] r11835 - Extractor/src/main
Date: Sun, 20 Jun 2010 15:00:47 +0200

Author: durner
Date: 2010-06-20 15:00:47 +0200 (Sun, 20 Jun 2010)
New Revision: 11835

Modified:
   Extractor/src/main/extractor.c
Log:
mingw port

Modified: Extractor/src/main/extractor.c
===================================================================
--- Extractor/src/main/extractor.c      2010-06-20 12:46:45 UTC (rev 11834)
+++ Extractor/src/main/extractor.c      2010-06-20 13:00:47 UTC (rev 11835)
@@ -1399,6 +1399,9 @@
   int p2[2];
   pid_t pid;
   int status;
+#ifdef WINDOWS
+  HANDLE process;
+#endif
 
   plugin->cpid = -1;
 #ifndef WINDOWS
@@ -1461,8 +1464,15 @@
   if (plugin->cpipe_in == NULL)
     {
       perror ("fdopen");
+#ifndef WINDOWS
       (void) kill (plugin->cpid, SIGKILL);
       waitpid (plugin->cpid, &status, 0);
+#else
+      process = OpenProcess (PROCESS_TERMINATE | SYNCHRONIZE, FALSE, 
plugin->cpid);
+      TerminateProcess (process, 0);
+      WaitForSingleObject (process, INFINITE);
+      CloseHandle (process);
+#endif
       close (p1[1]);
       close (p2[0]);
       plugin->cpid = -1;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]