Skip to content

Commit 61d8ec7

Browse files
committed
TIKA-1933
1 parent 270b8a9 commit 61d8ec7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tika-core/src/main/java/org/apache/tika/fork/ForkClient.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*/
1717
package org.apache.tika.fork;
1818

19+
import static java.nio.charset.StandardCharsets.UTF_8;
20+
1921
import java.io.DataInputStream;
2022
import java.io.DataOutputStream;
2123
import java.io.File;
@@ -33,8 +35,6 @@
3335
import org.apache.tika.io.IOUtils;
3436
import org.xml.sax.ContentHandler;
3537

36-
import static java.nio.charset.StandardCharsets.UTF_8;
37-
3838
class ForkClient {
3939

4040
private final List<ForkResource> resources = new ArrayList<ForkResource>();
@@ -174,6 +174,12 @@ public synchronized void close() {
174174
}
175175
if (process != null) {
176176
process.destroy();
177+
try {
178+
//TIKA-1933
179+
process.waitFor();
180+
} catch (InterruptedException e) {
181+
182+
}
177183
}
178184
if (jar != null) {
179185
jar.delete();

0 commit comments

Comments
 (0)