mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 22:33:06 +03:00
add exit code to %logo card
This commit is contained in:
parent
a5e0972193
commit
43c3988995
@ -534,6 +534,7 @@
|
||||
u2_unix unx_u; // sync and clay
|
||||
u2_batz beh_u; // batz timer
|
||||
u2_bean liv; // if u2_no, shut down
|
||||
c3_i xit_i; // exit code for shutdown
|
||||
void* ssl_u; // struct SSL_CTX*
|
||||
|
||||
u2_reck* arv_u; // runtime
|
||||
|
2
v/loop.c
2
v/loop.c
@ -483,7 +483,7 @@ u2_lo_shut(u2_bean inn)
|
||||
u2_loom_exit();
|
||||
u2_lo_exit();
|
||||
|
||||
exit(0);
|
||||
exit(u2_Host.xit_i);
|
||||
}
|
||||
else {
|
||||
// poll arvo to generate any event binding changes
|
||||
|
2
v/main.c
2
v/main.c
@ -303,7 +303,7 @@ main(c3_i argc,
|
||||
// Instantiate process globals.
|
||||
{
|
||||
u2_wr_check_init(u2_Host.ops_u.cpu_c);
|
||||
|
||||
u2_Host.xit_i = 0;
|
||||
if ( (u2_no == u2_Host.ops_u.nuu) &&
|
||||
(u2_yes == u2_loom_load()) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user