--- embedtools/src/cfexec.c 2009/11/12 10:41:47 1.1.1.1.2.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.2.1 2009/11/12 10:41:47 misho Exp $ + * $Id: cfexec.c,v 1.1.1.1.2.2 2009/11/12 11:45:34 misho Exp $ * *************************************************************************/ #include "global.h" @@ -193,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));