File tree 1 file changed +8
-2
lines changed
tika-core/src/main/java/org/apache/tika/fork
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
package org .apache .tika .fork ;
18
18
19
+ import static java .nio .charset .StandardCharsets .UTF_8 ;
20
+
19
21
import java .io .DataInputStream ;
20
22
import java .io .DataOutputStream ;
21
23
import java .io .File ;
33
35
import org .apache .tika .io .IOUtils ;
34
36
import org .xml .sax .ContentHandler ;
35
37
36
- import static java .nio .charset .StandardCharsets .UTF_8 ;
37
-
38
38
class ForkClient {
39
39
40
40
private final List <ForkResource > resources = new ArrayList <ForkResource >();
@@ -174,6 +174,12 @@ public synchronized void close() {
174
174
}
175
175
if (process != null ) {
176
176
process .destroy ();
177
+ try {
178
+ //TIKA-1933
179
+ process .waitFor ();
180
+ } catch (InterruptedException e ) {
181
+
182
+ }
177
183
}
178
184
if (jar != null ) {
179
185
jar .delete ();
You can’t perform that action at this time.
0 commit comments