mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 13:13:44 +00:00
Fix #1061
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user