summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-01-09 12:21:01 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-01-09 13:12:49 +0100
commit2785def37a8d64906b9d4e2c213c7d387cfb18af (patch)
tree4e080ecac6959536aa553b39eca715d40eb5e2fb /app/src/main/java
parent204755d6892acdcfbeffbf7cf0e44b3083b2f631 (diff)
RootShell: synchronize accesses to single shell
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/wireguard/android/util/RootShell.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/RootShell.java b/app/src/main/java/com/wireguard/android/util/RootShell.java
index 947a6679..f8b5bb9f 100644
--- a/app/src/main/java/com/wireguard/android/util/RootShell.java
+++ b/app/src/main/java/com/wireguard/android/util/RootShell.java
@@ -127,7 +127,7 @@ public class RootShell {
* @param command Command to run as root.
* @return The exit value of the last command run, or -1 if there was an internal error.
*/
- public int run(final Collection<String> output, final String command)
+ public synchronized int run(final Collection<String> output, final String command)
throws ErrnoException, IOException, NoRootException {
ensureRoot();