Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
fix with check that stdin pipe is open
Browse files Browse the repository at this point in the history
  • Loading branch information
ezotrank committed Oct 5, 2014
1 parent 048bd97 commit f0bd02c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ func main() {
panic(err)
}

if fi.Size() > 0 {
if fi.Mode()&os.ModeNamedPipe == 0 {
logsend.WatchFiles(*watchDir, *config)
} else {
flag.VisitAll(logsend.LoadRawConfig)
logsend.ProcessStdin()
} else {
logsend.WatchFiles(*watchDir, *config)
}
os.Exit(0)
}

0 comments on commit f0bd02c

Please sign in to comment.