Updates from BitShares FC #22
1 changed files with 5 additions and 11 deletions
|
|
@ -14,12 +14,6 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
# include <signal.h>
|
|
||||||
#else
|
|
||||||
# include <csignal>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace fc { namespace rpc {
|
namespace fc { namespace rpc {
|
||||||
|
|
||||||
static std::vector<std::string>& cli_commands()
|
static std::vector<std::string>& cli_commands()
|
||||||
|
|
@ -109,15 +103,15 @@ void cli::run()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
std::cout << itr->second( result, args ) << "\n";
|
std::cout << itr->second( result, args ) << "\n";
|
||||||
|
|
||||||
if (result.is_integer() && result.as_int64() == SIGQUIT)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch ( const fc::exception& e )
|
catch ( const fc::exception& e )
|
||||||
{
|
{
|
||||||
std::cout << e.to_detail_string() << "\n";
|
std::cout << e.to_detail_string() << "\n";
|
||||||
|
|
||||||
|
if (e.code() == fc::canceled_exception_code)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue