[Spice-devel] Help on terminate on disconnect feature needed

Alon Levy alevy at redhat.com
Sun Aug 12 15:10:35 PDT 2012


On Fri, Aug 10, 2012 at 03:57:05PM -0500, Jeremy White wrote:
> I've got a need for an Xspice feature whereby the whole X server dies on
> client disconnect.  Basically, we want the Xspice session to live
> exactly once, and then die.

You are talking about the spice client?

> 
> As I puzzle through the code, I don't have the feeling that there is an
> obvious place to inject that logic.  I mean, I can shove an abort()
> pretty much anywhere.  But I'd like to do it gracefully.

Look at server/red_channel.c; there is a per channel on_disconnect
callback, you can add a parameter to it. Also, why abort, exit sounds
like what you want.

> 
> I was hoping this would be obvious to someone else.  Anyone?
> 
> Thanks,
> 
> Jeremy
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list