diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-01-09 12:21:01 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-01-09 13:12:49 +0100 |
commit | 586526355451b62b537f602324d6894dfd7f2f8d (patch) | |
tree | 4e080ecac6959536aa553b39eca715d40eb5e2fb /app/src/main/java/com/wireguard | |
parent | e8c5f986ec228ec1ab33cc2e74a8265051c4a025 (diff) |
RootShell: synchronize accesses to single shell
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r-- | app/src/main/java/com/wireguard/android/util/RootShell.java | 2 |
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(); |