handle return of system call

This commit is contained in:
Dane Springmeyer 2011-04-01 23:55:19 +00:00
parent d0e98eb3f1
commit 649e4498c1

View file

@ -146,7 +146,7 @@ int main (int argc,char** argv)
mapnik::save_to_file<mapnik::image_data_32>(im.data(),svg_name,"png");
std::ostringstream s;
s << "open " << svg_name;
system(s.str().c_str());
return system(s.str().c_str());
}
}
}