From a4693935b02c509fe029a0653391f8a030e4d615 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 29 Jan 2013 03:58:42 +0100 Subject: Fix spurious port deallocation Replies are directly sent from client to actual server. * trans/fakeroot.c (netfs_demuxer): Return MIG_NO_REPLY, to notify server loop that no reply should be sent. --- trans/fakeroot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trans/fakeroot.c b/trans/fakeroot.c index f842fc56..8373be3a 100644 --- a/trans/fakeroot.c +++ b/trans/fakeroot.c @@ -874,6 +874,8 @@ netfs_demuxer (mach_msg_header_t *inp, MACH_PORT_NULL); assert_perror (err); /* XXX should synthesize reply */ ports_port_deref (cred); + /* We already sent the message, so the server loop shouldn't do it again. */ + ((mig_reply_header_t *) outp)->RetCode = MIG_NO_REPLY; return 1; } } -- cgit v1.2.3