Skip to content

Commit 5ec07b8

Browse files
committed
fixup! fsmonitor--daemon: use a cookie file to sync with file system
When flushing the FSMonitor data, we do not actually need to wait for a cookie file. In the worst case, we will over-report a bit. If we _do_ wait for a cookie file, in the worst case we cause a hang because the FSMonitor daemon will wait and wait even though the `.git/` directory might be gone already. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7eb8372 commit 5ec07b8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

builtin/fsmonitor--daemon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ static int do_handle_client(struct fsmonitor_daemon_state *state,
672672
*/
673673
do_flush = 1;
674674
do_trivial = 1;
675-
do_cookie = 1;
676675

677676
} else if (!skip_prefix(command, "builtin:", &p)) {
678677
/* assume V1 timestamp or garbage */

0 commit comments

Comments
 (0)