[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's missing/wrong in these test programs?

From: Svante Signell
Subject: Re: What's missing/wrong in these test programs?
Date: Tue, 14 Apr 2015 23:08:55 +0200

On Sun, 2015-04-12 at 20:19 +0200, Samuel Thibault wrote:
> Hello,
>  Now you need to check that the
> proc_user/server_identify RPC properly passes ports to the proc server
> so that the port name gets the same there.

Attached are the following files:
process.defs.new (new RPCs proc_user/server_identify)

Can somebody please give an explanation to the confusing number of
arguments is generated by MIG for the implementation of the S_*
functions to be correct. poly/simple/etc, e.g mach_port_send_t,
mach_port_poly_t?? Yes, I've read the few docs available, but they don't
give the complete story (for me). Studying the MIG source code and the
Hurd RPC's is also tough.

identify.c with printouts to stderr:
Both proc_user_identify() and proc_server_identify() gets stuck at

Bypassing in both seems to indicate that the rendezvous port is the
same. Why is there a hang?? to move to something else by now for

Obviously something is not correctly implemented, pleas help me to find
out where the errors are.

I have also written similar code implementing a identhandle as in auth.c
but the same hang persists.


I don't yet have any way to publish my code via git by a public repo.
Therefore the new code is sent in whole this time. Test code is alerady
published in this thread, change #if 0 to #if 1.

Thank you for your time :)

Attachment: identify.c
Description: Text Data

Attachment: process.defs.new
Description: Text Data

Attachment: process_S.h
Description: Text Data

Attachment: processServer.c
Description: Text Data

Attachment: process_U.h
Description: Text Data

Attachment: processUser.c
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]