From 4a1aaec0d8537f663a25b889bdcbf947ddf58d28 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 11 Aug 2011 16:33:31 +0200 Subject: Fix spurious port deallocation * patches/proc_exception.patch: New patch to fix spurious port deallocation. --- debian/patches/proc_exception.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 debian/patches/proc_exception.patch (limited to 'debian/patches/proc_exception.patch') diff --git a/debian/patches/proc_exception.patch b/debian/patches/proc_exception.patch new file mode 100644 index 00000000..9b6110cc --- /dev/null +++ b/debian/patches/proc_exception.patch @@ -0,0 +1,19 @@ +If proc_exception_raise() actually managed to sent its message, the reply port +has already been consumed, so we can't send a reply to the requester any more... + +TODO: this introduces leaks in some cases ; check in which error cases +proc_exception_raise() has consumed the reply port anyway. + +diff --git a/proc/mgt.c b/proc/mgt.c +index 5373d10..1180c70 100644 +--- a/proc/mgt.c ++++ b/proc/mgt.c +@@ -499,7 +499,7 @@ S_proc_exception_raise (mach_port_t excport, + + mach_port_destroy (mach_task_self (), thread); + +- return 0; ++ return MIG_NO_REPLY; + } + + } -- cgit v1.2.3