diff --git a/Orbot/src/org/torproject/android/service/TorService.java b/Orbot/src/org/torproject/android/service/TorService.java index ecb0a652..b9e08c25 100644 --- a/Orbot/src/org/torproject/android/service/TorService.java +++ b/Orbot/src/org/torproject/android/service/TorService.java @@ -447,8 +447,11 @@ public class TorService extends Service implements TorServiceConstants, Runnable String[] cmds = { PRIVOXY_INSTALL_PATH + " " + PRIVOXY_COMMAND_LINE_ARGS }; TorServiceUtils.doShellCommand(cmds, log, false, true); + Thread.sleep(1000); + privoxyProcId = TorServiceUtils.findProcessId(TorServiceConstants.PRIVOXY_INSTALL_PATH); + if (privoxyProcId == -1) { this.sendCallbackMessage("Couldn't start Privoxy process... retrying...\n" + log); @@ -456,6 +459,9 @@ public class TorService extends Service implements TorServiceConstants, Runnable } } + sendCallbackMessage("Privoxy is running on port: " + PORT_HTTP); + Thread.sleep(100); + Log.i(TAG,"Privoxy process id=" + privoxyProcId);