Ignore:
Timestamp:
Mar 26, 2010, 11:56:50 AM (15 years ago)
Author:
rybkin
Message:

See C.L. 422

File:
1 edited

Legend:

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

    r533 r535  
    14131413          }
    14141414
    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        /*
    14161418        if ((path_source == "CMTUSERCONTEXT") ||
    14171419            (path_source == "CMTHOME"))
     
    14191421            m_project = 0;
    14201422          }
     1423        */
    14211424      }
    14221425  }
     
    16461649  output = "";
    16471650
    1648   //cerr << "CmtSystem::execute2> [" << command << "]" << endl;
     1651  //  cerr << "CmtSystem::execute2> [" << command << "]" << endl;
    16491652
    16501653  FILE* f = popen (command.c_str (), "r");
     
    16611664        }
    16621665
    1663       if (pclose (f) == -1)
     1666      int status = pclose (f);
     1667      if (status == -1) // error reported by pclose ()
    16641668        {
     1669          perror ("pclose");
    16651670          if (errno == ECHILD)
    16661671            {
    16671672              return (0);
    16681673            }
    1669           return (1);
     1674          return (-1);
    16701675        }
    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);
    16761684}
    16771685
Note: See TracChangeset for help on using the changeset viewer.