commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] Debian GNU Hurd packaging branch, master, updated. debian/20110519


From: Samuel Thibault
Subject: [SCM] Debian GNU Hurd packaging branch, master, updated. debian/20110519-3-4-g7dd3286
Date: Thu, 11 Aug 2011 14:33:52 +0000

The following commit has been merged in the master branch:
commit 7dd32866e6bd26fde00cae4f58658fb92ffc8e28
Author: Samuel Thibault <address@hidden>
Date:   Thu Aug 11 16:33:31 2011 +0200

    Fix spurious port deallocation
    
      * patches/proc_exception.patch: New patch to fix spurious port 
deallocation.

diff --git a/debian/changelog b/debian/changelog
index 515f0af..d4a6f52 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ hurd (20110519-4) UNRELEASED; urgency=low
 
   * local/setup-translators: Restore /dev/shm creation.
   * patches/libdiskfs_sync.patch: New patch to fix sync at shutdown.
+  * patches/proc_exception.patch: New patch to fix spurious port deallocation.
 
  -- Samuel Thibault <address@hidden>  Mon, 01 Aug 2011 22:53:23 +0200
 
diff --git a/debian/patches/proc_exception.patch 
b/debian/patches/proc_exception.patch
new file mode 100644
index 0000000..9b6110c
--- /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;
+     }
+ 
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 9a7e4bc..5915190 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -31,3 +31,4 @@ auth-intr-cure.patch
 libpager_deadlock.patch
 libdiskfs_self-reauth.patch
 libdiskfs_sync.patch
+proc_exception.patch

-- 
Debian GNU Hurd packaging



reply via email to

[Prev in Thread] Current Thread [Next in Thread]