Merge branch 'jk/fsmonitor-event-listener-race-fix'
On macOS, fsmonitor can fall into a race condition that results in a client waiting forever to be notified for an event that have already happened. This problem has been corrected. * jk/fsmonitor-event-listener-race-fix: fsmonitor: initialize fs event listener before accepting clients simple-ipc: split async server initialization and running
This commit is contained in:
@ -1208,9 +1208,9 @@ static int fsmonitor_run_daemon_1(struct fsmonitor_daemon_state *state)
|
||||
* system event listener thread so that we have the IPC handle
|
||||
* before we need it.
|
||||
*/
|
||||
if (ipc_server_run_async(&state->ipc_server_data,
|
||||
state->path_ipc.buf, &ipc_opts,
|
||||
handle_client, state))
|
||||
if (ipc_server_init_async(&state->ipc_server_data,
|
||||
state->path_ipc.buf, &ipc_opts,
|
||||
handle_client, state))
|
||||
return error_errno(
|
||||
_("could not start IPC thread pool on '%s'"),
|
||||
state->path_ipc.buf);
|
||||
|
Reference in New Issue
Block a user