mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-28 10:43:31 +02:00
[319164][dstore][shells] shell cleanup threads stay around indefinitely when spirit is off
This commit is contained in:
parent
ddb2de4c9c
commit
cb87eae05a
1 changed files with 6 additions and 3 deletions
|
@ -15,6 +15,7 @@
|
||||||
* David McKnight (IBM) - [202822] cleanup output datalements after use
|
* David McKnight (IBM) - [202822] cleanup output datalements after use
|
||||||
* Martin Oberhuber (Wind River) - [225510][api] Fix OutputRefreshJob API leakage
|
* Martin Oberhuber (Wind River) - [225510][api] Fix OutputRefreshJob API leakage
|
||||||
* David McKnight (IBM) - [286671] Dstore shell service interprets < and > sequences
|
* David McKnight (IBM) - [286671] Dstore shell service interprets < and > sequences
|
||||||
|
* David McKnight (IBM) - [319164][dstore][shells] shell cleanup threads stay around indefinitely when spirit is off
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.subsystems.shells.dstore;
|
package org.eclipse.rse.internal.subsystems.shells.dstore;
|
||||||
|
@ -46,6 +47,7 @@ public class DStoreServiceCommandShell extends ServiceCommandShell
|
||||||
private DataElement _status;
|
private DataElement _status;
|
||||||
private DataStore _ds;
|
private DataStore _ds;
|
||||||
private boolean _done = false;
|
private boolean _done = false;
|
||||||
|
private int _timesWaited = 0;
|
||||||
|
|
||||||
public CleanUpSpirited(DataElement status, String name)
|
public CleanUpSpirited(DataElement status, String name)
|
||||||
{
|
{
|
||||||
|
@ -61,11 +63,12 @@ public class DStoreServiceCommandShell extends ServiceCommandShell
|
||||||
|
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
while (!_done)
|
while (!_done && _timesWaited < 3) // limit the attempts to 3, since it's possible that, on the server, spirit is off
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Thread.sleep(10000);
|
Thread.sleep(10000);
|
||||||
|
_timesWaited++;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue