Updates from BitShares FC #22
1 changed files with 8 additions and 2 deletions
|
|
@ -14,6 +14,12 @@
|
||||||
# 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()
|
||||||
|
|
@ -104,9 +110,9 @@ void cli::run()
|
||||||
else
|
else
|
||||||
std::cout << itr->second( result, args ) << "\n";
|
std::cout << itr->second( result, args ) << "\n";
|
||||||
|
|
||||||
if (method == "quit")
|
if (result.is_integer() && result.as_int64() == SIGQUIT)
|
||||||
{
|
{
|
||||||
stop();
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch ( const fc::exception& e )
|
catch ( const fc::exception& e )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue