diff options
author | Pacien TRAN-GIRARD | 2017-07-09 20:20:14 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2017-07-09 20:21:15 +0200 |
commit | 2c5673b187233a30a0dd284bc37436fc30596c66 (patch) | |
tree | 8d6297648124a639878392c95e266ec91cfe45cd /app/src/main/java/org/pacien/tincapp/commands/Tincd.kt | |
parent | 5c52c7fbc522e7d11141291d5650bb53cd1fa509 (diff) | |
download | tincapp-2c5673b187233a30a0dd284bc37436fc30596c66.tar.gz |
Make tincctl calls properly async
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/commands/Tincd.kt')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/commands/Tincd.kt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt b/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt index 19ebfbd..db113cc 100644 --- a/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt +++ b/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt | |||
@@ -1,14 +1,12 @@ | |||
1 | package org.pacien.tincapp.commands | 1 | package org.pacien.tincapp.commands |
2 | 2 | ||
3 | import org.pacien.tincapp.context.AppPaths | 3 | import org.pacien.tincapp.context.AppPaths |
4 | import java.io.IOException | ||
5 | 4 | ||
6 | /** | 5 | /** |
7 | * @author pacien | 6 | * @author pacien |
8 | */ | 7 | */ |
9 | object Tincd { | 8 | object Tincd { |
10 | 9 | ||
11 | @Throws(IOException::class) | ||
12 | fun start(netName: String, fd: Int) { | 10 | fun start(netName: String, fd: Int) { |
13 | Executor.forkExec(Command(AppPaths.tincd().absolutePath) | 11 | Executor.forkExec(Command(AppPaths.tincd().absolutePath) |
14 | .withOption("no-detach") | 12 | .withOption("no-detach") |