From 5b6534d7c9cdd0d6f0284cdf6f30b9bcf5fffc52 Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Sun, 4 Aug 2013 13:45:16 +0200
Subject: Fix fsys_goaway
---
fsys_proxy.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
(limited to 'fsys_proxy.c')
diff --git a/fsys_proxy.c b/fsys_proxy.c
index 0af04ac..fd528c3 100644
--- a/fsys_proxy.c
+++ b/fsys_proxy.c
@@ -19,9 +19,13 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
+#include
+
#include "priv.h"
-#include
+/* Hack to get to the new declaration. */
+#undef _fsys_user_
+#include "fsys_request_U.h"
error_t
S_fsys_startup (mach_port_t bootstrap, int flags, mach_port_t control,
@@ -94,8 +98,13 @@ S_fsys_getroot (mach_port_t fsys_t,
error_t
S_fsys_goaway (mach_port_t control, int flags)
{
- /* XXX we never get to see those... */
- return EOPNOTSUPP;
+ /* Tell our child to go away. */
+ fsys_goaway_request (active_control,
+ /* We won't be around for the reply anyway. */
+ mach_reply_port (),
+ flags);
+
+ exit (0);
}
error_t
--
cgit v1.2.3