aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2017-07-09 20:20:14 +0200
committerPacien TRAN-GIRARD2017-07-09 20:21:15 +0200
commit2c5673b187233a30a0dd284bc37436fc30596c66 (patch)
tree8d6297648124a639878392c95e266ec91cfe45cd /app/src/main/java/org/pacien/tincapp/commands/Tincd.kt
parent5c52c7fbc522e7d11141291d5650bb53cd1fa509 (diff)
downloadtincapp-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.kt2
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 @@
1package org.pacien.tincapp.commands 1package org.pacien.tincapp.commands
2 2
3import org.pacien.tincapp.context.AppPaths 3import org.pacien.tincapp.context.AppPaths
4import java.io.IOException
5 4
6/** 5/**
7 * @author pacien 6 * @author pacien
8 */ 7 */
9object Tincd { 8object 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")