Distributed under the LGPL
*/
-#include <iostream>
#include <sys/wait.h>
#include <fcntl.h>
#include <cstdlib>
#include <cstring>
+#include <msp/io/print.h>
#include "misc.h"
using namespace std;
::exit(1);
}
else if(pid==-1)
- cerr<<"Failed to execute "<<argv.front()<<'\n';
+ IO::print(IO::cerr, "Failed to execute %s\n", argv.front());
else
{
close(pfd[1]);