Updates from BitShares FC #22

Closed
nathanielhourt wants to merge 693 commits from dapp-support into latest-fc
Showing only changes of commit 535fc869b5 - Show all commits

View file

@ -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 )