Skip to content

Commit

Permalink
Add a NOTE about updating MARKUT files in watch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Dec 21, 2023
1 parent 49e68c4 commit 3ab986e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions markut.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,9 @@ func watchSubcommand(args []string) bool {
break;
}

// NOTE: always use rsync(1) for updating the MARKUT file remotely.
// This kind of crappy modification checking needs at least some sort of atomicity.
// rsync(1) is as atomic as rename(2). So it's alright for majority of the cases.
fmt.Printf("INFO: %s is not done. Waiting for modifications...\n", *markutPtr);
for {
time.Sleep(1 * time.Second)
Expand Down

0 comments on commit 3ab986e

Please sign in to comment.