Skip to content

Commit c121d24

Browse files
committed
set name for the ctags error thread
1 parent d8315b1 commit c121d24

File tree

1 file changed

+3
-3
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/analysis

1 file changed

+3
-3
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/Ctags.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
import org.apache.commons.lang3.SystemUtils;
5050
import org.jetbrains.annotations.Nullable;
51+
import org.opengrok.indexer.configuration.OpenGrokThreadFactory;
5152
import org.opengrok.indexer.configuration.RuntimeEnvironment;
5253
import org.opengrok.indexer.index.IndexerParallelizer;
5354
import org.opengrok.indexer.logger.LoggerFactory;
@@ -224,12 +225,11 @@ private void run() throws IOException {
224225
ProcessBuilder processBuilder = new ProcessBuilder(command);
225226

226227
ctagsProcess = processBuilder.start();
227-
ctagsIn = new OutputStreamWriter(
228-
ctagsProcess.getOutputStream(), StandardCharsets.UTF_8);
228+
ctagsIn = new OutputStreamWriter(ctagsProcess.getOutputStream(), StandardCharsets.UTF_8);
229229
ctagsOut = new BufferedReader(new InputStreamReader(ctagsProcess.getInputStream(),
230230
StandardCharsets.UTF_8));
231231

232-
Thread errThread = new Thread(() -> {
232+
Thread errThread = new OpenGrokThreadFactory("OpenGrok-ctags-err").newThread(() -> {
233233
try (BufferedReader error = new BufferedReader(new InputStreamReader(ctagsProcess.getErrorStream(),
234234
StandardCharsets.UTF_8))) {
235235
String s;

0 commit comments

Comments
 (0)