diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-29 03:58:42 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-29 03:58:42 +0100 |
commit | a4693935b02c509fe029a0653391f8a030e4d615 (patch) | |
tree | 435fc2bce560f964a92cbf0aa51022b757093978 /trans/fakeroot.c | |
parent | 12fa728d27c133572d38c52e6ae56256792b2727 (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.c | 2 |
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; } } |