Changeset 535 for CMT/HEAD/source/cmt_system.cxx
- Timestamp:
- Mar 26, 2010, 11:56:50 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_system.cxx
r533 r535 1413 1413 } 1414 1414 1415 m_project = factory.create_project (project_name, npath, path_source, m_project); 1415 m_project = factory.create_project (project_name, npath, path_source, 0); 1416 // m_project = factory.create_project (project_name, npath, path_source, m_project); 1417 /* 1416 1418 if ((path_source == "CMTUSERCONTEXT") || 1417 1419 (path_source == "CMTHOME")) … … 1419 1421 m_project = 0; 1420 1422 } 1423 */ 1421 1424 } 1422 1425 } … … 1646 1649 output = ""; 1647 1650 1648 // cerr << "CmtSystem::execute2> [" << command << "]" << endl;1651 // cerr << "CmtSystem::execute2> [" << command << "]" << endl; 1649 1652 1650 1653 FILE* f = popen (command.c_str (), "r"); … … 1661 1664 } 1662 1665 1663 if (pclose (f) == -1) 1666 int status = pclose (f); 1667 if (status == -1) // error reported by pclose () 1664 1668 { 1669 perror ("pclose"); 1665 1670 if (errno == ECHILD) 1666 1671 { 1667 1672 return (0); 1668 1673 } 1669 return ( 1);1674 return (-1); 1670 1675 } 1671 1672 return (0); 1673 } 1674 1675 return (1); 1676 else 1677 { 1678 return WEXITSTATUS(status); // return status of the command 1679 //return (0); 1680 } 1681 } 1682 1683 return (-2); 1676 1684 } 1677 1685
Note: See TracChangeset
for help on using the changeset viewer.