wendy

inotify based node watcher
git clone git://git.2f30.org/wendy
Log | Files | Refs | README | LICENSE

commit 6a8cc070dbd404d740009f71bec92c8c3593cf2b
parent d9b41bb26d563a50964b320cbe9f2634e7c0c784
Author: z3bra <willy@mailoo.org>
Date:   Wed, 12 Feb 2014 17:02:19 +0100

Fixed command handling

Diffstat:
Mwendy.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/wendy.c b/wendy.c @@ -169,8 +169,7 @@ main (int argc, char **argv) * If you don't undersand this sentence, don't worry. Me neither. * Just trust the if(). */ - if (cmd && !(file && strncmp(file, ev->name, 255))) { - + if (cmd) { /* OMG a new event ! Quick, raise an alert ! */ if (!fork()) { execvpe(cmd[0], cmd, environ); } }