[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 09/15: libfshelp: Avoid some right diddling.
From: |
Samuel Thibault |
Subject: |
[hurd] 09/15: libfshelp: Avoid some right diddling. |
Date: |
Sun, 19 Nov 2017 15:27:06 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit 04aaffbd6353e7cec04073783cc8cbd22ac2f675
Author: Justus Winter <address@hidden>
Date: Sun Aug 20 12:03:33 2017 +0200
libfshelp: Avoid some right diddling.
* libfshelp/translator-list.c (fshelp_set_active_translator): Avoid
updating the entry if the control port is still the same.
---
libfshelp/translator-list.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libfshelp/translator-list.c b/libfshelp/translator-list.c
index 91a2c34..a360330 100644
--- a/libfshelp/translator-list.c
+++ b/libfshelp/translator-list.c
@@ -121,7 +121,7 @@ fshelp_set_active_translator (struct port_info *pi,
}
update:
- if (MACH_PORT_VALID (active))
+ if (MACH_PORT_VALID (active) && active != t->active)
{
mach_port_t old;
err = mach_port_request_notification (mach_task_self (), active,
@@ -146,7 +146,7 @@ fshelp_set_active_translator (struct port_info *pi,
MACH_PORT_RIGHT_SEND, +1);
t->active = active;
}
- else
+ else if (! MACH_PORT_VALID (active))
{
int ok;
ok = hurd_ihash_remove (&translator_ihash, (hurd_ihash_key_t) t->name);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch dde updated (4d4175c -> e3c726d), Samuel Thibault, 2017/11/19
- [hurd] 04/15: libfshelp: Avoid useless allocations., Samuel Thibault, 2017/11/19
- [hurd] 05/15: libfshelp: Always register dead-name notifications., Samuel Thibault, 2017/11/19
- [hurd] 07/15: Normalize path of translators., Samuel Thibault, 2017/11/19
- [hurd] 09/15: libfshelp: Avoid some right diddling.,
Samuel Thibault <=
- [hurd] 08/15: libfshelp: Improve error handling., Samuel Thibault, 2017/11/19
- [hurd] 12/15: libdiskfs: Shutdown pagers on startup_dosync., Samuel Thibault, 2017/11/19
- [hurd] 10/15: libfshelp: Use node instead of name as key., Samuel Thibault, 2017/11/19
- [hurd] 06/15: libfshelp: Add function to map over all active translators., Samuel Thibault, 2017/11/19
- [hurd] 02/15: libfshelp: improve translator list, Samuel Thibault, 2017/11/19
- [hurd] 01/15: pflocal: Use default stub implementations., Samuel Thibault, 2017/11/19
- [hurd] 15/15: Merge branch 'dde-upstream' into dde, Samuel Thibault, 2017/11/19
- [hurd] 03/15: Fix active translator registration., Samuel Thibault, 2017/11/19
- [hurd] 13/15: Merge remote-tracking branch 'mainline/master' into dde, Samuel Thibault, 2017/11/19
- [hurd] 14/15: Merge branch 'dde' of git.savannah.gnu.org:/srv/git/hurd/incubator into dde-upstream, Samuel Thibault, 2017/11/19