[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Handle SIGTERM on Linux
|
If there is a volunteer, please let us know. We'd like to sponsor this
change.
--
Best regards,
Thomas Singer
--------------------------------------------------
syntevo GmbH |Register of companies:
Salzburger Str. 17 | Handelsregister HRB 16660
83404 Ainring | Amtsgericht Traunstein
Germany |Managing Directors:
Phone: +49-8654-681900-0| Thomas Singer
Fax : +49-8654-681900-9| Marc Strapetz
http://www.syntevo.com |VAT-ID: DE244701621
--------------------------------------------------
On 2018-02-24 15:18, Thomas Singer wrote:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=531634
On 2/24/2018 2:18 PM, Aleksandar Kurtakov wrote:
Please open a bug report so this can be handled properly.
On Sat, Feb 24, 2018 at 3:13 PM, Thomas Singer <ts-swt@xxxxxxxxxxx>
wrote:
BTW, is SWT handling termination properly on Win and Mac?
The display's Close listener is invoked on Mac if the system is shutting
down.
--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog
On 2018-02-24 11:18, Aleksandar Kurtakov wrote:
On Sat, Feb 24, 2018 at 12:11 PM, Thomas Singer <ts-swt@xxxxxxxxxxx>
wrote:
Hi Aleksandar,
Thanks for answering.
This is a good example on how to handle SIGTERM -
https://airtower.wordpress.com/2010/06/16/catch-sigterm-exit
-gracefully/
.
Now the question is how to do that in a Java application?
That's a good question for which I don't know the answer. IMHO such
work
would have to live in SWT (or some other part having C/JNI parts) where
such implementation can be done and CloseListeners to be called on
SIGTERM.
This requires someone doing all the experiments and providing a patch.
BTW, is SWT handling termination properly on Win and Mac?
Cheers,
Tom
On 2/24/2018 10:56 AM, Aleksandar Kurtakov wrote:
On Sat, Feb 24, 2018 at 8:31 AM, Thomas Singer <ts-swt@xxxxxxxxxxx>
wrote:
Hello,
For Linux some users complain from time to time that SmartGit
does not
store its settings when Linux is shut down while SmartGit is
running.
SmartGit stores its settings when it is cleanly exited - either by
closing
all windows (main shells), by invoking the exit menu item or by the
display's Close-listener.
Could it be that the display's Close-listener is not invoked if
Linux
sends a SIGTERM signal to tell the application to exit? How much
time a
Linux application usually has to react on the SIGTERM signal?
Thanks in
advance.
This is a good example on how to handle SIGTERM -
https://airtower.wordpress.com/2010/06/16/catch-sigterm-exit
-gracefully/
.
In general there is no limitation for the time the handler should
take
but
note that it will eventually receive SIGKILL if it takes too long.
It's
worth trying whether your CloseListener is called when killing the
process
with console kill. I have never looked into whether SWT does smth
like
that.
--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev