mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 01:25:23 +02:00
Set a useful name for SshShellOutputReader
This commit is contained in:
parent
96842affa0
commit
d1dd0b13db
1 changed files with 9 additions and 0 deletions
|
@ -20,9 +20,13 @@ package org.eclipse.rse.services.ssh.shell;
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.IStatus;
|
||||||
|
import org.eclipse.core.runtime.Status;
|
||||||
|
|
||||||
import org.eclipse.rse.services.shells.AbstractHostShellOutputReader;
|
import org.eclipse.rse.services.shells.AbstractHostShellOutputReader;
|
||||||
import org.eclipse.rse.services.shells.IHostShell;
|
import org.eclipse.rse.services.shells.IHostShell;
|
||||||
import org.eclipse.rse.services.shells.IHostShellOutputReader;
|
import org.eclipse.rse.services.shells.IHostShellOutputReader;
|
||||||
|
import org.eclipse.rse.services.ssh.Activator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listener to shell output. As io streams through, refresh events are sent out
|
* Listener to shell output. As io streams through, refresh events are sent out
|
||||||
|
@ -37,6 +41,7 @@ public class SshShellOutputReader extends AbstractHostShellOutputReader
|
||||||
public SshShellOutputReader(IHostShell hostShell, BufferedReader reader,
|
public SshShellOutputReader(IHostShell hostShell, BufferedReader reader,
|
||||||
boolean isErrorReader) {
|
boolean isErrorReader) {
|
||||||
super(hostShell, isErrorReader);
|
super(hostShell, isErrorReader);
|
||||||
|
setName("SshShellOutputReader-"+getName()); //$NON-NLS-1$
|
||||||
fReader = reader;
|
fReader = reader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,6 +128,10 @@ public class SshShellOutputReader extends AbstractHostShellOutputReader
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
//FIXME it's dangerous to return null here since this will end
|
||||||
|
//our reader thread completely... the exception could just be
|
||||||
|
//temporary, and we should keep running!
|
||||||
|
Activator.getDefault().getLog().log(new Status(IStatus.WARNING, Activator.getDefault().getBundle().getSymbolicName(), 0, "IOException in SshShellOutputReader", e));
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue