Skip to content

Commit

Permalink
Ignore /dev
Browse files Browse the repository at this point in the history
  • Loading branch information
joelim-work committed Jan 5, 2025
1 parent 4edbf6e commit b8896d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ func (watch *watch) add(path string) {
return
}

// ignore /dev since write updates to /dev/tty causes high cpu usage
if path == "/dev" {
return
}

watch.watcher.Add(path)
}

Expand Down

0 comments on commit b8896d9

Please sign in to comment.