summaryrefslogtreecommitdiff
path: root/compat/fsmonitor/fsm-health-linux.c
blob: 43d67c4b8b9efa6c386d1cffc9a3f241f4ebf577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "git-compat-util.h"
#include "config.h"
#include "fsmonitor-ll.h"
#include "fsm-health.h"
#include "fsmonitor--daemon.h"

/*
 * The Linux fsmonitor implementation uses inotify which has its own
 * mechanisms for detecting filesystem unmount and other events that
 * would require the daemon to shutdown.  Therefore, we don't need
 * a separate health thread like Windows does.
 *
 * These stub functions satisfy the interface requirements.
 */

int fsm_health__ctor(struct fsmonitor_daemon_state *state UNUSED)
{
	return 0;
}

void fsm_health__dtor(struct fsmonitor_daemon_state *state UNUSED)
{
	return;
}

void fsm_health__loop(struct fsmonitor_daemon_state *state UNUSED)
{
	return;
}

void fsm_health__stop_async(struct fsmonitor_daemon_state *state UNUSED)
{
}