summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-20 23:50:46 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-20 23:50:46 +0100
commitc97d8278a809f939e1163d1087314178ef25f19b (patch)
treefb4d3399435d4d29607249daa04e104721a3b696
parent3e495aea3c353e34f2fdf3d0a3a142a54aa7bb00 (diff)
libmachdev: Register translator for shutdown notification
When starting a libmachdev translator after bootstrap, we still want the translator to be notified by startup, to properly flush buffers etc.
-rw-r--r--libmachdev/trivfs_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c
index 14367157..e122b0f9 100644
--- a/libmachdev/trivfs_server.c
+++ b/libmachdev/trivfs_server.c
@@ -569,6 +569,8 @@ machdev_trivfs_server(mach_port_t bootstrap)
mach_port_deallocate (mach_task_self (), bootstrap);
if (err)
error (1, err, "Contacting parent");
+
+ arrange_shutdown_notification ();
}
else
{