Salome HOME
projects
/
tools
/
libbatch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compilation errors on Windows
[tools/libbatch.git]
/
src
/
Local
/
Batch_BatchManager_Local.cxx
diff --git
a/src/Local/Batch_BatchManager_Local.cxx
b/src/Local/Batch_BatchManager_Local.cxx
index c7d3f60d0f857065feee0ac6a341f8d4bd9f45c2..e33cb65dbb22e39e2375e685c5ef76d8b2995f1c 100644
(file)
--- a/
src/Local/Batch_BatchManager_Local.cxx
+++ b/
src/Local/Batch_BatchManager_Local.cxx
@@
-549,7
+549,7
@@
namespace Batch {
while (1) {
#ifdef WIN32
DWORD exitCode;
while (1) {
#ifdef WIN32
DWORD exitCode;
-
BOOL res =
GetExitCodeProcess(child, &exitCode);
+ GetExitCodeProcess(child, &exitCode);
if (exitCode != STILL_ACTIVE) {
UNDER_LOCK( cout << "Father sees his child is DONE: exit code = " << exitCode << endl );
break;
if (exitCode != STILL_ACTIVE) {
UNDER_LOCK( cout << "Father sees his child is DONE: exit code = " << exitCode << endl );
break;
@@
-881,7
+881,7
@@
namespace Batch {
char * buffer = strdup(comstr.c_str());
// launch the new process
char * buffer = strdup(comstr.c_str());
// launch the new process
-
BOOL
res = CreateProcess(NULL, buffer, NULL, NULL, FALSE,
+
bool
res = CreateProcess(NULL, buffer, NULL, NULL, FALSE,
CREATE_NO_WINDOW, chNewEnv, NULL, &si, &pi);
if (buffer) free(buffer);
CREATE_NO_WINDOW, chNewEnv, NULL, &si, &pi);
if (buffer) free(buffer);