[Pntool-developers] SF.net SVN: pntool:[259]
Brought to you by:
compaqdrew,
miordache
From: <mio...@us...> - 2011-07-28 19:40:20
|
Revision: 259 http://pntool.svn.sourceforge.net/pntool/?rev=259&view=rev Author: miordache Date: 2011-07-28 19:40:14 +0000 (Thu, 28 Jul 2011) Log Message: ----------- Modified Paths: -------------- old_versions/2011/newcodegen/SupervisorTemplate.c old_versions/2011/newcodegen/supervisorCompiler.c present_version/newcodegen/SupervisorTemplate.c present_version/newcodegen/supervisorCompiler.c Modified: old_versions/2011/newcodegen/SupervisorTemplate.c =================================================================== --- old_versions/2011/newcodegen/SupervisorTemplate.c 2011-07-28 16:39:24 UTC (rev 258) +++ old_versions/2011/newcodegen/SupervisorTemplate.c 2011-07-28 19:40:14 UTC (rev 259) @@ -786,8 +786,8 @@ } if( ! ___cpid) { // code execuded by child process ___upd_comm_param(0, ___pr, ___where); - execlp(___pname[___type], ___pname[___type], ___com, 0); - debugInfo("exclp was unable to start \"%s %s\"", ___pname[___type], ___com); + execl(___pname[___type], ___pname[___type], ___com, (char*)0); + debugInfo("excl was unable to start \"%s %s\"", ___pname[___type], ___com); ___ms.type = ___EXIT_NOTIFICATION; ___ms.id = ___pr; ___send_to_supervisor(&___ms, sizeof(___ms), ___pr); Modified: old_versions/2011/newcodegen/supervisorCompiler.c =================================================================== --- old_versions/2011/newcodegen/supervisorCompiler.c 2011-07-28 16:39:24 UTC (rev 258) +++ old_versions/2011/newcodegen/supervisorCompiler.c 2011-07-28 19:40:14 UTC (rev 259) @@ -840,7 +840,7 @@ if(prs[i]->name) if(strlen(prs[i]->name)) { if( ! prs[i]->thread ) - ins = FSInsert(ins, " \"%s.exe\"", prs[i]->name); + ins = FSInsert(ins, " \"./%s.exe\"", prs[i]->name); else ins = SInsert(" 0", ins); if(i == nprs - 1) @@ -949,7 +949,7 @@ #ifndef ___USE_PTHREAD_LIB fprintf(f, "\n\t$(COMPILER) -o %s.exe %s.c", sn, sn); #else - fprintf(f, "\n\t$(COMPILER) -lpthreads -o %s.exe %s.c", sn, sn); + fprintf(f, "\n\t$(COMPILER) -lpthread -o %s.exe %s.c", sn, sn); #endif for(i = 0; i < n; i++) if(thr[i]) @@ -985,7 +985,7 @@ #ifndef ___USE_PTHREAD_LIB fprintf(f, "\n\t$(COMPILER) -o %s.exe %s.c", prs[i]->name, prs[i]->name); #else - fprintf(f, "\n\t$(COMPILER) -lpthreads -o %s.exe %s.c", prs[i]->name, prs[i]->name); + fprintf(f, "\n\t$(COMPILER) -lpthread -o %s.exe %s.c", prs[i]->name, prs[i]->name); #endif } } Modified: present_version/newcodegen/SupervisorTemplate.c =================================================================== --- present_version/newcodegen/SupervisorTemplate.c 2011-07-28 16:39:24 UTC (rev 258) +++ present_version/newcodegen/SupervisorTemplate.c 2011-07-28 19:40:14 UTC (rev 259) @@ -786,8 +786,8 @@ } if( ! ___cpid) { // code execuded by child process ___upd_comm_param(0, ___pr, ___where); - execlp(___pname[___type], ___pname[___type], ___com, 0); - debugInfo("exclp was unable to start \"%s %s\"", ___pname[___type], ___com); + execl(___pname[___type], ___pname[___type], ___com, (char*)0); + debugInfo("excl was unable to start \"%s %s\"", ___pname[___type], ___com); ___ms.type = ___EXIT_NOTIFICATION; ___ms.id = ___pr; ___send_to_supervisor(&___ms, sizeof(___ms), ___pr); Modified: present_version/newcodegen/supervisorCompiler.c =================================================================== --- present_version/newcodegen/supervisorCompiler.c 2011-07-28 16:39:24 UTC (rev 258) +++ present_version/newcodegen/supervisorCompiler.c 2011-07-28 19:40:14 UTC (rev 259) @@ -840,7 +840,7 @@ if(prs[i]->name) if(strlen(prs[i]->name)) { if( ! prs[i]->thread ) - ins = FSInsert(ins, " \"%s.exe\"", prs[i]->name); + ins = FSInsert(ins, " \"./%s.exe\"", prs[i]->name); else ins = SInsert(" 0", ins); if(i == nprs - 1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |