summaryrefslogtreecommitdiff
path: root/fsys_proxy.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-08-04 13:45:16 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-08-04 13:45:34 +0200
commit5b6534d7c9cdd0d6f0284cdf6f30b9bcf5fffc52 (patch)
tree08194a75bc15e6cd1ad134de85c4db1de78eccbc /fsys_proxy.c
parent215ee22f3c0d6c45403e562fee95d809547b4302 (diff)
Fix fsys_goaway
Diffstat (limited to 'fsys_proxy.c')
-rw-r--r--fsys_proxy.c15
1 files changed, 12 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. */
+#include <hurd/fsys.h>
+
#include "priv.h"
-#include <hurd/fsys.h>
+/* 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