crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs | LICENSE

restart.cc (278B)


      1 #include "config"
      2 
      3 void Config::restart() {
      4 	for (int i = 0; org_argv[i]; i++)
      5 	    cout << "Arg " << i << ": " << org_argv[i] << '\n';
      6 	execvp("xr", org_argv);
      7 	ostringstream o;
      8 	o << "Failed to restart: errno=" << errno << ", "
      9 	  << strerror(errno);
     10 	throw Error(o.str());
     11 }