add exit code to %logo card

This commit is contained in:
~hatteb-mitlyd 2014-05-12 15:42:43 -07:00
parent a5e0972193
commit 43c3988995
4 changed files with 4 additions and 2 deletions

View File

@ -534,6 +534,7 @@
u2_unix unx_u; // sync and clay u2_unix unx_u; // sync and clay
u2_batz beh_u; // batz timer u2_batz beh_u; // batz timer
u2_bean liv; // if u2_no, shut down u2_bean liv; // if u2_no, shut down
c3_i xit_i; // exit code for shutdown
void* ssl_u; // struct SSL_CTX* void* ssl_u; // struct SSL_CTX*
u2_reck* arv_u; // runtime u2_reck* arv_u; // runtime

View File

@ -483,7 +483,7 @@ u2_lo_shut(u2_bean inn)
u2_loom_exit(); u2_loom_exit();
u2_lo_exit(); u2_lo_exit();
exit(0); exit(u2_Host.xit_i);
} }
else { else {
// poll arvo to generate any event binding changes // poll arvo to generate any event binding changes

View File

@ -303,7 +303,7 @@ main(c3_i argc,
// Instantiate process globals. // Instantiate process globals.
{ {
u2_wr_check_init(u2_Host.ops_u.cpu_c); u2_wr_check_init(u2_Host.ops_u.cpu_c);
u2_Host.xit_i = 0;
if ( (u2_no == u2_Host.ops_u.nuu) && if ( (u2_no == u2_Host.ops_u.nuu) &&
(u2_yes == u2_loom_load()) ) (u2_yes == u2_loom_load()) )
{ {

View File

@ -628,6 +628,7 @@ _reck_kick_term(u2_reck* rec_u, u2_noun pox, c3_l tid_l, u2_noun fav)
case c3__logo: case c3__logo:
{ {
u2_Host.liv = u2_no; u2_Host.liv = u2_no;
u2_Host.xit_i = u2t(fav);
u2z(pox); u2z(fav); return u2_yes; u2z(pox); u2z(fav); return u2_yes;
} break; } break;