mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-26 20:42:50 -05:00
dll: fuse: only use the environment's malloc prior to fsp_fuse_loop
- this allows an environment like Cygwin to safely call fork prior to fuse_loop/fuse_loop_mt
This commit is contained in:
@@ -931,10 +931,19 @@ typedef struct _FSP_SERVICE
|
||||
* @return
|
||||
* Service process exit code.
|
||||
*/
|
||||
FSP_API ULONG FspServiceRun(PWSTR ServiceName,
|
||||
FSP_API ULONG FspServiceRunEx(PWSTR ServiceName,
|
||||
FSP_SERVICE_START *OnStart,
|
||||
FSP_SERVICE_STOP *OnStop,
|
||||
FSP_SERVICE_CONTROL *OnControl);
|
||||
FSP_SERVICE_CONTROL *OnControl,
|
||||
PVOID UserContext);
|
||||
static inline
|
||||
ULONG FspServiceRun(PWSTR ServiceName,
|
||||
FSP_SERVICE_START *OnStart,
|
||||
FSP_SERVICE_STOP *OnStop,
|
||||
FSP_SERVICE_CONTROL *OnControl)
|
||||
{
|
||||
return FspServiceRunEx(ServiceName, OnStart, OnStop, OnControl, 0);
|
||||
}
|
||||
/**
|
||||
* Create a service object.
|
||||
*
|
||||
|
Reference in New Issue
Block a user