From c97d8278a809f939e1163d1087314178ef25f19b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Feb 2022 23:50:46 +0100 Subject: 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. --- libmachdev/trivfs_server.c | 2 ++ 1 file changed, 2 insertions(+) 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 { -- cgit v1.2.3