[tor-bugs] #1388 [Orbot]: Error parsing PID from output of "ps"
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Fri Dec 10 19:06:04 UTC 2010
#1388: Error parsing PID from output of "ps"
-----------------------+----------------------------------------------------
Reporter: anonymous | Type: defect
Status: reopened | Priority: normal
Milestone: | Component: Orbot
Version: | Resolution:
Keywords: | Parent:
-----------------------+----------------------------------------------------
Changes (by n8fr8):
* status: closed => reopened
* resolution: fixed =>
Comment:
mikos on IRC reports this may not be working;
os> n8fr8: About that bug - I have looked at TorServiceUtils.java, method
findProcessIdWithPidOf, and it _can't_ work in my opinion. It is starting
"procPs = r.exec(SHELL_CMD_PIDOF);", but you must tell program name to
pidof.
<n8fr8> but it does work sometimes, right?
<mikos> n8fr8: It should IMHO be something like "procPs =
r.exec(SHELL_CMD_PIDOF + ' ' + command);". But maybe I am wrong, I am not
Java programmer (only Pythoneer)...
--> katmagic (~katmagic at 1RDAABISK.tor-irc.dnsbl.oftc.net) has joined #tor
<-- gouki has quit (Remote host closed the connection)
<n8fr8> okay i will reopen the ticket and look at it myself shortly.
working on an orbot update for release soon and can send you a build as
well.
<mikos> n8fr8: No, it doesn't for me... it tries also findProcessIdWithPS,
but this will fail too, because PID is in first column in ps output but it
expects second column
n8fr8: Maybe some other Android builds have ps with another output
format?
--> gouki (~gouki at 1RDAABISM.tor-irc.dnsbl.oftc.net) has joined #tor
<mikos> n8fr8: But anyway findProcessIdWithPidOf IMHO really could't work
(and never did, if it was always same)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1388#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list