Ignore:
Timestamp:
Apr 29, 2009, 2:29:53 PM (15 years ago)
Author:
rybkin
Message:

See C.L. 392

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_system.cxx

    r464 r497  
    2828
    2929#define stat _stat
     30#define WEXITSTATUS(w) (w)
    3031
    3132#else
     
    16101611{
    16111612  //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 ()));
    16141619}
    16151620
Note: See TracChangeset for help on using the changeset viewer.