--- embedtools/src/cfexec.c 2009/11/12 10:35:55 1.1.1.1 +++ embedtools/src/cfexec.c 2009/11/12 11:45:34 1.1.1.1.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: cfexec.c,v 1.1.1.1 2009/11/12 10:35:55 misho Exp $ + * $Id: cfexec.c,v 1.1.1.1.2.2 2009/11/12 11:45:34 misho Exp $ * *************************************************************************/ #include "global.h" @@ -15,6 +15,7 @@ char szUser[MAX_STR], szMount[MAXPATHLEN], szDev[MAXPA szChroot[MAXPATHLEN], szSess[MAXPATHLEN], szConfig[MAXPATHLEN]; extern char compiled[], compiledby[], compilehost[]; + static void Usage() { @@ -192,7 +193,7 @@ int main(int argc, char **argv) memset(&ts, 0, sizeof ts); ts.tv_sec = Timeout; - switch (kevent(kq, &chg, 1, &evt, 1, &ts)) { + switch (kevent(kq, &chg, 1, &evt, 1, !Timeout ? NULL : &ts)) { case -1: printf("Error:: can`t execute safe mount #%d - %s\n", errno, strerror(errno));