need to do _exit not exit after exec failure

This commit is contained in:
dockes 2005-11-23 10:17:35 +00:00
parent 44fb0eb359
commit 9247d9f7d5

View File

@ -1,5 +1,5 @@
#ifndef lint
static char rcsid[] = "@(#$Id: execmd.cpp,v 1.8 2005-11-21 17:18:58 dockes Exp $ (C) 2004 J.F.Dockes";
static char rcsid[] = "@(#$Id: execmd.cpp,v 1.9 2005-11-23 10:17:35 dockes Exp $ (C) 2004 J.F.Dockes";
#endif
#ifndef TEST_EXECMD
#include <unistd.h>
@ -204,7 +204,7 @@ int ExecCmd::doexec(const string &cmd, const list<string>& args,
// Hu ho
LOGERR(("ExecCmd::doexec: execvp(%s) failed. errno %d\n", cmd.c_str(),
errno));
exit(128);
_Exit(128);
}
}