summaryrefslogtreecommitdiffhomepage
path: root/app/src
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
commit586526355451b62b537f602324d6894dfd7f2f8d (patch)
tree4e080ecac6959536aa553b39eca715d40eb5e2fb /app/src
parente8c5f986ec228ec1ab33cc2e74a8265051c4a025 (diff)
RootShell: synchronize accesses to single shell
Diffstat (limited to 'app/src')
-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();