summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-05-26 17:25:33 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-10 22:13:20 +0200
commitb24812dce9062559ab2b9a3d07505d9985ccc83a (patch)
tree04282e30d44c918bc9c729940fffe0a8407e1aee /libfshelp
parentb948c942539d47fb91a28dd085a028f3116b70c4 (diff)
libfshelp: Update some comments
Diffstat (limited to 'libfshelp')
-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,