Changeset 31738
- Timestamp:
- 2017-06-14T22:19:39+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/src/lib/jdbmnaiveclass.cpp
r24729 r31738 137 137 delete [] openfile_cstr; 138 138 139 int status = system(cmd); 139 //int status = system(cmd); // avoid flashing windows 140 int status = gsdl_system(cmd, true, *logout); // true for synchronous call: wait for process to end 140 141 if (status != 0 ) { 141 142 (*logout) << "jdbmnaiveclass: failed to run cmd: " << cmd << endl; … … 296 297 delete [] openfile_cstr; 297 298 298 int status = system(cmd); 299 //int status = system(cmd); // causes flashing DOS prompt windows 300 // https://stackoverflow.com/questions/1597289/hide-console-in-c-system-function-win 301 int status = gsdl_system(cmd, true, *logout); // passing false makes it a synchronous call 299 302 if (status != 0) { 300 303 (*logout) << "jdbmnaiveclass: failed to run cmd:" … … 308 311 } 309 312 313 314
Note:
See TracChangeset
for help on using the changeset viewer.