1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
From b2f9eafa4ab9e3d7da69b31e9f432cae6085cc8d Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Fri, 27 Nov 2015 20:52:23 +0100
Subject: [PATCH hurd 2/4] fu
---
libfshelp/translator-list.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/libfshelp/translator-list.c b/libfshelp/translator-list.c
index 87d7f6a..8f0bfae 100644
--- a/libfshelp/translator-list.c
+++ b/libfshelp/translator-list.c
@@ -55,7 +55,9 @@ translator_ihash_cleanup (void *element, void *arg)
if (translator->pi)
ports_port_deref (translator->pi);
err = mach_port_deallocate (mach_task_self (), translator->active);
- assert_perror (err);
+ //assert_perror (err);
+ if (err)
+ error (0, err, "%s:%d:mach_port_deallocate", __FILE__, __LINE__);
free (translator->name);
free (translator);
}
@@ -128,11 +130,15 @@ fshelp_set_active_translator (struct port_info *pi,
if (MACH_PORT_VALID (t->active))
{
err = mach_port_deallocate (mach_task_self (), t->active);
- assert_perror (err);
+ //assert_perror (err);
+ if (err)
+ error (0, err, "%s:%d:mach_port_deallocate", __FILE__, __LINE__);
}
err = mach_port_mod_refs (mach_task_self (), active,
MACH_PORT_RIGHT_SEND, +1);
- assert_perror (err);
+ //assert_perror (err);
+ if (err)
+ error (0, err, "%s:%d:mach_port_mod_refs", __FILE__, __LINE__);
t->active = active;
}
else
--
2.1.4
|