summaryrefslogtreecommitdiff
path: root/trans/fakeroot.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-29 03:58:42 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-29 03:58:42 +0100
commita4693935b02c509fe029a0653391f8a030e4d615 (patch)
tree435fc2bce560f964a92cbf0aa51022b757093978 /trans/fakeroot.c
parent12fa728d27c133572d38c52e6ae56256792b2727 (diff)
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.
Diffstat (limited to 'trans/fakeroot.c')
-rw-r--r--trans/fakeroot.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}