improves ames error exit, notes issue with ctrl-z

This commit is contained in:
Joe Bryan 2018-11-30 15:44:01 -05:00
parent 1497de4161
commit 66b3a98aed
2 changed files with 3 additions and 1 deletions

View File

@ -427,7 +427,7 @@ _ames_io_start(u3_pier* pir_u)
uL(fprintf(uH, uL(fprintf(uH,
" ...perhaps you've got two copies of vere running?\n")); " ...perhaps you've got two copies of vere running?\n"));
} }
exit(1); u3_pier_exit();
} }
uv_udp_getsockname(&sam_u->wax_u, (struct sockaddr *)&add_u, &add_i); uv_udp_getsockname(&sam_u->wax_u, (struct sockaddr *)&add_u, &add_i);

View File

@ -493,6 +493,8 @@ void
_stop_exit(c3_i int_i) _stop_exit(c3_i int_i)
{ {
fprintf(stderr, "\r\n[received keyboard stop signal, exiting]\r\n"); fprintf(stderr, "\r\n[received keyboard stop signal, exiting]\r\n");
// XX crashes if we haven't started a pier yet
//
u3_pier_exit(); u3_pier_exit();
} }