Terminate on SIGTSTP.

This commit is contained in:
C. Guy Yarvin 2015-11-27 10:52:24 -08:00
parent d89cdded22
commit 9083af04df

View File

@ -371,6 +371,13 @@ report(void)
printf("libuv: %s\n", uv_version_string());
}
void
_stop_exit(c3_i int_i)
{
fprintf(stderr, "\r\n[received keyboard stop signal, exiting]\r\n");
u3_lo_bail();
}
c3_i
main(c3_i argc,
c3_c** argv)
@ -423,6 +430,10 @@ main(c3_i argc,
}
}
// Handle SIGTSTP as if it was SIGTERM.
//
signal(SIGTSTP, _stop_exit);
printf("~\n");
// printf("welcome.\n");
printf("urbit: home is %s\n", u3_Host.dir_c);