MCPcopy Index your code
hub / github.com/cSploit/android / wait

Method wait

cSploit/src/org/csploit/android/core/ChildManager.java:37–47  ·  view source on GitHub ↗

wait for a child termination @param c the child to wait for @return the child exit code @throws InterruptedException if current thread gets interrupted while waiting @throws ChildDiedException if child has been killed by a signal

(Child c)

Source from the content-addressed store, hash-verified

35 * @throws ChildDiedException if child has been killed by a signal
36 */
37 public static int wait(Child c) throws InterruptedException, ChildDiedException {
38 synchronized (children) {
39 while (c.running)
40 children.wait();
41 }
42
43 if(c.signal >= 0) {
44 throw new ChildDiedException(c.signal);
45 }
46 return c.exitValue;
47 }
48
49 /**
50 * execute a command

Callers 9

runMethod · 0.95
notifyNativeErrorMethod · 0.95
execMethod · 0.95
joinMethod · 0.80
onEventMethod · 0.80
getMethod · 0.80
fetchMethod · 0.80
runMethod · 0.80
grabCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected