launcher: better handling of service instance stopping:

- instances are now launched in a job so that they get killed if the parent process dies
    - instances are killed after a timeout if they do not respond timely to console control events
This commit is contained in:
Bill Zissimopoulos
2016-05-14 18:47:26 -07:00
parent 147c90be9f
commit 3035ba2847
2 changed files with 181 additions and 24 deletions

View File

@ -21,6 +21,8 @@
#include <winfsp/winfsp.h>
#include <shared/minimal.h>
#define STOP_TIMEOUT 5000
#define PIPE_NAME "\\\\.\\pipe\\WinFsp.{14E7137D-22B4-437A-B0C1-D21D1BDF3767}"
#define PIPE_BUFFER_SIZE 2048
#define PIPE_DEFAULT_TIMEOUT 3000