----- Original Message ----- > From: "Jan Middelkoop" <[email protected]> > To: [email protected], "Tristan Matthews" > <[email protected]> > Sent: Thursday, May 31, 2012 10:23:14 AM > Subject: Re: [SFLphone] sflphoned keeps running after gnome client shutdown > > Hi everyone, > > Thanks for the attention you're all giving this. > > I have just found a way to reproduce it quite easily. It might have > to > do with the way Gnome terminates processes on logout, or it might > have > to do with the LTSP (Linux terminal server) handles the logout of > clients, but try doing this in a terminal: > > - sflphone-client-gnome & > - kill `pidof sflphone-client-gnome` > - sleep 60 # give the daemon reasonable time to quit > - ps aux | grep sflphoned
So this has been fixed in the git master as of yesterday, when the sflphone-client-gnome process is killed it tells the daemon to quit via dbus. It's true that there are other ways the client could die (crash, kill -9, etc.) in which case the daemon would not be told to quit. Just to reiterate, here are the only ways the sflphone daemon (in git master) will automatically quit cleanly (hang up calls, unregister SIP accounts): -all clients (for the current user) have quit (done using the client counter). -ONE client has received SIGINT, SIGTERM or SIGHUP (it sends a DBUS signal to the daemon telling it to quit). -the daemon has received SIGINT, SIGTERM or SIGHUP We could add a feature to the daemon so that it would periodically fire off a D-Bus signal and if no client responds in time, the daemon quits as it assumes that no remaining clients are running. This would be more robust than the client-counting approach. However, since it is often advantageous for developers to run the daemon without any clients running, we would have to also add an option to override this behaviour. Best, Tristan > > On my system, sflphoned is still running after this. From what > you've > told me, I'd guess sflphone-client-gnome terminates before it sends a > disconnect command to the daemon, leaving the daemon to think there > is > still 1 client attached. > > I will, per Tristan's instructions, file a bug report about this. > Thanks in advance. > > Met vriendelijke groet, > > Jan Middelkoop > Recreatie en Zorg Groep B.V. > > -- > Website: http://www.recreatie-zorg.nl/ > E-mail: [email protected] > Telefoon: +31 10 714 22 97 > > > Op 31-05-12 16:03, Tristan Matthews schreef: > > Jan: if you can reliably reproduce the undesired behaviour, please > > open a ticket on redmine. > > > > Best, > > Tristan > _______________________________________________ SFLphone mailing list [email protected] http://lists.savoirfairelinux.net/mailman/listinfo/sflphone
