From 9247d9f7d5fbb3920209ba0275584a66c6a8c667 Mon Sep 17 00:00:00 2001 From: dockes Date: Wed, 23 Nov 2005 10:17:35 +0000 Subject: [PATCH] need to do _exit not exit after exec failure --- src/utils/execmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/execmd.cpp b/src/utils/execmd.cpp index c242e494..31e55769 100644 --- a/src/utils/execmd.cpp +++ b/src/utils/execmd.cpp @@ -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 @@ -204,7 +204,7 @@ int ExecCmd::doexec(const string &cmd, const list& args, // Hu ho LOGERR(("ExecCmd::doexec: execvp(%s) failed. errno %d\n", cmd.c_str(), errno)); - exit(128); + _Exit(128); } }