fixed infinite wait on too large dmesg output

This commit is contained in:
harrim4n
2016-01-28 23:49:23 +01:00
parent 37155966ad
commit c89cfb6749

View File

@@ -53,7 +53,6 @@ public class FreeBSD extends OS {
try {
Runtime r = Runtime.getRuntime();
Process p = r.exec("dmesg");
p.waitFor();
BufferedReader b = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = "";
@@ -94,7 +93,6 @@ public class FreeBSD extends OS {
try {
Runtime r = Runtime.getRuntime();
Process p = r.exec("dmesg");
p.waitFor();
BufferedReader b = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = "";