aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libfshelp/start-translator-long.c5
-rw-r--r--libfshelp/translator-list.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/libfshelp/start-translator-long.c b/libfshelp/start-translator-long.c
index 3a0a115b..1df5d57b 100644
--- a/libfshelp/start-translator-long.c
+++ b/libfshelp/start-translator-long.c
@@ -300,7 +300,10 @@ fshelp_start_translator_long (fshelp_open_fn_t underlying_open_fn,
if (err)
goto lose_task;
- /* Ask to be told if TASK dies. */
+ /* Ask to be told if TASK dies. It is OK to use the same port here, since we
+ never give it out to anyone but the translator itself (and the file system,
+ and the exec server). If the translator wants us to believe it has died,
+ so be it. */
err =
mach_port_request_notification(mach_task_self(),
bootstrap, MACH_NOTIFY_NO_SENDERS, 0,
diff --git a/libfshelp/translator-list.c b/libfshelp/translator-list.c
index 63088fe9..6d4f9411 100644
--- a/libfshelp/translator-list.c
+++ b/libfshelp/translator-list.c
@@ -79,8 +79,7 @@ static pthread_mutex_t translator_ihash_lock = PTHREAD_MUTEX_INITIALIZER;
/* Record an active translator being bound to the given file name
NAME. TRANSBOX is the nodes transbox. PI references a receive
- port that is used to request dead name notifications, typically the
- port for the underlying node passed to the translator. */
+ port that is used to request dead name notifications. */
error_t
fshelp_set_active_translator (struct port_info *pi,
const char *name,