From 0758578f6cf7f68fbc33e959a2f616a0b9be7bc7 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 29 May 2013 15:07:53 -0700 Subject: [PATCH] gotail: add -p argument to use polling --- cmd/gotail/gotail.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/gotail/gotail.go b/cmd/gotail/gotail.go index c204e32..250af2a 100644 --- a/cmd/gotail/gotail.go +++ b/cmd/gotail/gotail.go @@ -14,6 +14,7 @@ func args2config() tail.Config { flag.IntVar(&config.Location, "n", 0, "tail from the last Nth location") flag.BoolVar(&config.Follow, "f", false, "wait for additional data to be appended to the file") flag.BoolVar(&config.ReOpen, "F", false, "follow, and track file rename/rotation") + flag.BoolVar(&config.Poll, "p", false, "use polling, instead of inotify") flag.Parse() if config.ReOpen { config.Follow = true