MCPcopy Create free account
hub / github.com/BirolLab/abyss / systemOrExit

Function systemOrExit

DataBase/DB.cc:107–114  ·  view source on GitHub ↗

Execute the specified shell command and exit if it fails. */

Source from the content-addressed store, hash-verified

105
106/** Execute the specified shell command and exit if it fails. */
107static inline void systemOrExit(const char* s)
108{
109 int status = system(s);
110 if (status != 0) {
111 std::cerr << "error: status " << status << ": " << s << '\n';
112 exit(EXIT_FAILURE);
113 }
114}
115
116string DB::getPath(const string& program)
117{

Callers 1

getPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected