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

Jeremy White jwhite at codeweavers.com
Mon Aug 13 08:38:28 PDT 2012


On 08/12/2012 05:10 PM, Alon Levy wrote:
> 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?

Yes, right.  Having a spice server have exactly one client and
committing sepaku from grief if it's client vanishes :-/.

> 
>>
>> 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.

Yes, definitely exit.  Would a patch like this make sense?

Cheers,

Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disconnect.diff
Type: text/x-patch
Size: 1697 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120813/cd1fd9cb/attachment.bin>


More information about the Spice-devel mailing list