--- parser3/src/main/pa_exec.C 2002/01/25 12:59:43 1.22 +++ parser3/src/main/pa_exec.C 2002/02/26 13:45:12 1.26 @@ -1,10 +1,10 @@ /** @file Parser: program executing for different OS-es. - Copyright(c) 2000,2001 ArtLebedev Group(http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) + Copyright(c) 2000,2001, 2002 ArtLebedev Group(http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_exec.C,v 1.22 2002/01/25 12:59:43 paf Exp $ + $Id: pa_exec.C,v 1.26 2002/02/26 13:45:12 paf Exp $ @todo setrlimit @@ -27,7 +27,7 @@ #ifdef WIN32 /// this func from http://www.ccas.ru/~posp/popov/spawn.htm -static BOOL WINAPI CreateHiddenConsoleProcess(LPCTSTR szChildName, +static BOOL WINAPI CreateHiddenConsoleProcess(LPCTSTR szCmdLine, char *szEnv, PROCESS_INFORMATION* ppi, LPHANDLE phInWrite, @@ -72,7 +72,7 @@ static BOOL WINAPI CreateHiddenConsolePr // Create a child process (suspended) fCreated=CreateProcess(NULL, - (LPTSTR)szChildName, + (LPTSTR)szCmdLine, NULL, NULL, TRUE, @@ -234,7 +234,7 @@ static int execle_piped(const char *path /* HP-UX SIGCHLD fix goes here, if someone will remind me what it is... */ signal(SIGCHLD, SIG_DFL); /* Was that it? */ - execle(path, arg1, arg2, arg3, arg4, arg5, NULL, env); + execle(path, path, arg1, arg2, arg3, arg4, arg5, NULL, env); exit(-errno); } @@ -352,7 +352,7 @@ from http://www.apache.org/websrc/cvsweb throw Exception(0, 0, &file_spec, - "(real filename=\"%s\") exec failed - %s (%ld)", + "(real command line=\"%s\") exec failed - %s (%ld)", cmd, szErrorDesc, (long)error); }