bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inotify back end for tail -f on linux


From: Jim Meyering
Subject: Re: inotify back end for tail -f on linux
Date: Sat, 06 Jun 2009 11:52:44 +0200

Giuseppe Scrivano wrote:
...
> I think the exit (EXIT_FAILURE) should be included in the if:
>
> if (0 <= wd)
>   {
>     tail_forever_inotify (wd, F, n_files);
>     exit (EXIT_FAILURE);
>   }
>
> The inotify_init () call can fail if the inotify support is not present
> at runtime, and in this case it is a good idea to use polling instead of
> exit immediately.  Do you agree?

Yes.  Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]