mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 16:09:31 +03:00
vere: free pier on graceful shutdown
This commit is contained in:
parent
a3ae21ea5b
commit
46f3a17658
@ -1395,12 +1395,29 @@ _pier_work_close(u3_work* wok_u)
|
||||
wok_u->pep_u.data = wok_u;
|
||||
}
|
||||
|
||||
/* _pier_done(): dispose pier.
|
||||
*/
|
||||
static void
|
||||
_pier_free(u3_pier* pir_u)
|
||||
{
|
||||
c3_free(pir_u->pax_c);
|
||||
|
||||
// XX remove
|
||||
//
|
||||
c3_free(pir_u->sav_u);
|
||||
|
||||
c3_free(pir_u);
|
||||
}
|
||||
|
||||
/* _pier_done(): graceful shutdown complete, notify king.
|
||||
*/
|
||||
static void
|
||||
_pier_done(u3_pier* pir_u)
|
||||
{
|
||||
// XX unlink properly
|
||||
//
|
||||
u3K.pir_u = 0;
|
||||
_pier_free(pir_u);
|
||||
u3_king_done();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user