added Privoxy running confirmation; also reachableports and relay support (added by ioerror) have been double-checked

svn:r21830
This commit is contained in:
Nathan Freitas 2010-03-06 15:02:04 +00:00
parent 32c6e62c45
commit 4674391570
1 changed files with 6 additions and 0 deletions

View File

@ -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);