You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2015/10/15 12:12:11 UTC
[jira] [Closed] (OAK-3473) CliUtils#handleSigInt uses classes from
sun.misc.*
[ https://issues.apache.org/jira/browse/OAK-3473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davide Giannella closed OAK-3473.
---------------------------------
Bulk close for 1.3.8
> CliUtils#handleSigInt uses classes from sun.misc.*
> --------------------------------------------------
>
> Key: OAK-3473
> URL: https://issues.apache.org/jira/browse/OAK-3473
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: upgrade
> Affects Versions: 1.3.7
> Reporter: Julian Sedding
> Assignee: Julian Sedding
> Fix For: 1.3.8
>
>
> {{CliUtils#handleSigInt()}} introduced with OAK-2171 uses {{sun.misc.Signal}} and {{sun.misc.SignalHandler}} to gracefully shut down after e.g. {{Ctrl+C}}.
> Instead of using internal and sun specific APIs, this should be implemented using a [shutdown hook|http://docs.oracle.com/javase/8/docs/api/java/lang/Runtime.html#addShutdownHook-java.lang.Thread-].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)