Re: [Interest] Triggering Actions on Application Close

2013-07-10 Thread Mandeep Sandhu
Here's a good article on how to handle unix signals the Qt way (i.e via it's event loop): http://qt-project.org/doc/qt-4.8/unix-signals.html HTH, -mandeep On Wed, Jul 10, 2013 at 5:53 PM, franki wrote: > Dnia wtorek, 9 lipca 2013 o 00:33:44 Mitchell Verter napisaƂ(a): > > How do I trigger cl

Re: [Interest] Triggering Actions on Application Close

2013-07-09 Thread Till Oliver Knoll
Am 10.07.2013 um 02:09 schrieb Hamish Moffatt : > On 09/07/13 17:00, Till Oliver Knoll wrote: >> By the way: SIGTERM is the signal sent to a console application when >> pressing CTRL + C (also on Windows). > I think that's SIGINT actually, but I'm nitpicking.. Yeah, right :) Trying to refresh m

Re: [Interest] Triggering Actions on Application Close

2013-07-09 Thread Konrad Rosenbaum
Hi, On Tuesday 09 July 2013 09:00:55 Till Oliver Knoll wrote: > A) is by design: it is there to really *really* kill a process in the most > brutal manner (*) a sysadmin could think of and a process being able to > catch (and possibly ignore!) that signal would defeat its purpose. > (*) which can

Re: [Interest] Triggering Actions on Application Close

2013-07-09 Thread Till Oliver Knoll
Am 09.07.2013 um 06:13 schrieb Charles Yin : > see also : > http://stackoverflow.com/questions/3360761/how-to-do-a-cleanup-after-sigkill The answers tell you that A) SIGKILL ("kill -9") can *not* be caught by a process and hence B) If you *really* need to do cleanup in such a case you need to

Re: [Interest] Triggering Actions on Application Close

2013-07-08 Thread Charles Yin
see also : http://stackoverflow.com/questions/3360761/how-to-do-a-cleanup-after-sigkill 2013/7/9 Gopalakrishna Bhat > > > > On Tue, Jul 9, 2013 at 9:33 AM, andy fillebrown > wrote: > >> I think the problem might be the use of the "Force quit" button. That is >> not a normal way to close an ap

Re: [Interest] Triggering Actions on Application Close

2013-07-08 Thread Gopalakrishna Bhat
On Tue, Jul 9, 2013 at 9:33 AM, andy fillebrown wrote: > I think the problem might be the use of the "Force quit" button. That is > not a normal way to close an application. Pressing the "Force quit" button > is similar to using the OS to kill the process. I'd be surprised if any > slots were ca

Re: [Interest] Triggering Actions on Application Close

2013-07-08 Thread andy fillebrown
I think the problem might be the use of the "Force quit" button. That is not a normal way to close an application. Pressing the "Force quit" button is similar to using the OS to kill the process. I'd be surprised if any slots were called in that case. Try closing the application like a normal us