Changeset 497 for CMT/HEAD/source/cmt_system.cxx
- Timestamp:
- Apr 29, 2009, 2:29:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_system.cxx
r464 r497 28 28 29 29 #define stat _stat 30 #define WEXITSTATUS(w) (w) 30 31 31 32 #else … … 1610 1611 { 1611 1612 //cerr << "CmtSystem::execute1> [" << command << "]" << endl; 1612 1613 return (system (command.c_str ())); 1613 int status = system (command.c_str ()); 1614 if (status == -1) // failed 1615 return -1; 1616 else 1617 return WEXITSTATUS(status); // return status of the command 1618 // return (system (command.c_str ())); 1614 1619 } 1615 1620
Note: See TracChangeset
for help on using the changeset viewer.