package inoticoming tags 438565 + pending thanks * Robert Edmonds <[EMAIL PROTECTED]> [070817 22:34]: > It would be nice if inoticoming could perform its actions against files > already existing in the monitored directory when it starts, so I've > coded such a feature and attached a diff.
I like this. Added. Though a bit differently implemented. - no need to make things more complex and portable, when inotify is yet quite linux only, thus just using d_type in dirent instead of stat calls. - opening the directory before daemonisation, as it might be relative. > The patch also updates the syntax() function to match the man page. Yeah, that I always forget... > I also noticed that the man page states "Note that since it is a well- > behaved daemon, its working directory is / which will be inherited by > all actions", but in fact the daemon never invokes chdir("/"); so I > added such a call. AFAIK daemon(false,...) should always make that call, and from my tests it also always does so. Thanks again, Bernhard R. Link -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]