> 153 + auto const ucredp = (struct ucred *)
> CMSG_DATA(CMSG_FIRSTHDR(&msgh));
>
> C cast.
Done
> 210 +// Disabled as we can't be sure the mir_demo_client_basic is about
>
> Why depend on mir_demo_client_basic instead of creating a new process and
> running mir_connect() ourselves? We can also record the actual client PID this
> way, and compare it directly with what the server got.
I did consider this - but wasn't sure I wanted to get involved with forking a process that already has a mir server running in it (and a socket pair). (Or communicating with one forked earlier after obtaining the socket.) I've been thinking that a small scriptable client might be good for several tests. But including that work in this MP seemed disproportionate.
> 153 + auto const ucredp = (struct ucred *) CMSG_FIRSTHDR( &msgh)) ;
> CMSG_DATA(
>
> C cast.
Done
> 210 +// Disabled as we can't be sure the mir_demo_ client_ basic is about client_ basic instead of creating a new process and
>
> Why depend on mir_demo_
> running mir_connect() ourselves? We can also record the actual client PID this
> way, and compare it directly with what the server got.
I did consider this - but wasn't sure I wanted to get involved with forking a process that already has a mir server running in it (and a socket pair). (Or communicating with one forked earlier after obtaining the socket.) I've been thinking that a small scriptable client might be good for several tests. But including that work in this MP seemed disproportionate.