Hi<br><br><div class="gmail_quote">On Thu, Dec 15, 2011 at 10:13 AM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com">cfergeau@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
<br>
When is it triggered exactly? On reconnect? The coroutine structure is<br>
stored in SpiceChannelPrivate which means it's initially 0'ed out, and this<br>
should be 0 when coroutine_init is first called. If this co->ret = 0; is<br>
there to handle subsequent calls to coroutine_init, it might be better to<br>
memset the whole struct coroutine on disconnect (or whatever place is<br>
appropriate), or to do 0 out the whole structure first thing in all the<br>
coroutine implementations.<br>
<br>
Dunno if that makes sense or if I missed something though :)<br>
<br></blockquote><div style><br></div><div style>Correct, it happens on reconnect, reusing the same channel.</div><div style><br></div><div><span style>I prefer initialization of this value where the fiber is initialized. But your proposed solutions would work too.</span></div>
<div><br></div></div>-- <br>Marc-André Lureau<br>