On 10/28/2016 01:48 PM, HW42 wrote:
> Marek Marczykowski-Górecki:
> [...]
> > I see. The server part is much more critical, so it's ok to have as it
> > is now. Actually my solution also pass the data manually on the
> client side
> > - but it uses "cat" for this:
>
> > (echo $GIT_EXT_SERVICE $2 $3; exec cat) | qrexec-client-vm
> $VMNAME local.Git
>
> This unfortunately does not work if the remote simply exits. The problem
> ist that cat does not detect that it's output fd is closed and therefore
> still waits for input on stdin (You can observe this for example if you
> try to fetch from an non existing repo).
>
> That's the same reason why
>
> cat | /bin/true
>
> blocks. While you can work around it I'm not aware of a _simple_ trick
> to do it.
>
> What do you think of providing some way to pass a first line in
> qrexec-client-vm or some wrapper. Then not everybody who implements such
> simple qrexec services needs to implement their own "copier" and think
> of all the corner cases.
BTW the code is written as-is aand can be used as a library, no need to
write anything new anyone else anymore.
--
Rudd-O
http://rudd-o.com/
--
You received this message because you are subscribed to the Google Groups
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-devel/ce29bfb7-e630-2159-e48e-51a55720a34d%40rudd-o.com.
For more options, visit https://groups.google.com/d/optout.