This commit is contained in:
Max Lv
2017-01-12 10:24:27 +08:00
parent dc39af8195
commit 3fde843ec8
11 changed files with 51 additions and 230 deletions
+15
View File
@@ -29,6 +29,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <libcork/core.h>
@@ -179,6 +180,14 @@ stop_plugin()
}
}
int is_plugin_running()
{
if (sub != NULL) {
return cork_subprocess_is_finished(sub);
}
return 0;
}
#else
#include "stdint.h"
@@ -210,4 +219,10 @@ stop_plugin()
FATAL("Plugin is not supported on MinGW.");
}
int
is_plugin_running()
{
FATAL("Plugin is not supported on MinGW.");
}
#endif