[Spice-devel] [PATCH spice-xpi 1/4] Avoid a race leading to a plugin crash

Marc-André Lureau mlureau at redhat.com
Fri Feb 24 03:07:15 PST 2012


Hi

> > +        close(pipe_fds[0]);
> > +        pipe_fds[0] = -1;
> > +
> > +        s_children[child] = this;
> > +
> > +        close(pipe_fds[1]);
> > +        pipe_fds[1] = -1;
> > +
> 
> So you're not doing a write, but instead just a close, and so the
> child's read should return 0?

yes

I thought that was the simplest solution, but I might have missed something.


More information about the Spice-devel mailing list