Switch to unified view
a/src/utils/execmd.cpp | b/src/utils/execmd.cpp | ||
---|---|---|---|
1 | #ifndef lint |
1 | #ifndef lint |
2 | static char rcsid[] = "@(#$Id: execmd.cpp,v 1.9 2005-11-23 10:17:35 dockes Exp $ (C) 2004 J.F.Dockes"; |
2 | static char rcsid[] = "@(#$Id: execmd.cpp,v 1.10 2005-11-23 11:11:50 dockes Exp $ (C) 2004 J.F.Dockes"; |
3 | #endif |
3 | #endif |
4 | #ifndef TEST_EXECMD |
4 | #ifndef TEST_EXECMD |
5 | #include <unistd.h> |
5 | #include <unistd.h> |
6 | #include <sys/types.h> |
6 | #include <sys/types.h> |
7 | #include <sys/wait.h> |
7 | #include <sys/wait.h> |
... |
... |
||
202 | 202 | ||
203 | execvp(cmd.c_str(), (char *const*)argv); |
203 | execvp(cmd.c_str(), (char *const*)argv); |
204 | // Hu ho |
204 | // Hu ho |
205 | LOGERR(("ExecCmd::doexec: execvp(%s) failed. errno %d\n", cmd.c_str(), |
205 | LOGERR(("ExecCmd::doexec: execvp(%s) failed. errno %d\n", cmd.c_str(), |
206 | errno)); |
206 | errno)); |
207 | _Exit(128);
|
207 | _exit(128);
|
208 | } |
208 | } |
209 | } |
209 | } |
210 | 210 | ||
211 | #else // TEST |
211 | #else // TEST |
212 | #include <stdio.h> |
212 | #include <stdio.h> |