aboutsummaryrefslogtreecommitdiff
path: root/gocryptfs_main
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-10-11 18:03:24 +0200
committerJakob Unterwurzacher2015-10-11 18:03:24 +0200
commita863a6569c294cb06916cbf303a1230a04e73f76 (patch)
tree68d2122c9feb0662b06dd3fe51936b62ff7b58da /gocryptfs_main
parent14115b061b253f3c58eee731e3b38dbb18fcf1fa (diff)
Drop shell wrapper
Diffstat (limited to 'gocryptfs_main')
-rwxr-xr-xgocryptfs_main/gocryptfs33
1 files changed, 0 insertions, 33 deletions
diff --git a/gocryptfs_main/gocryptfs b/gocryptfs_main/gocryptfs
deleted file mode 100755
index a297cf2..0000000
--- a/gocryptfs_main/gocryptfs
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# Wrapper that runs the gocryptfs process in the background
-# and exits on SIGUSR1
-#
-# Written in shell because Go does not support daemonization natively
-
-set -eu
-
-trap "exit 0" SIGUSR1
-shopt -u huponexit
-
-dir=$(dirname $(readlink -f "$0"))
-main="$dir/gocryptfs_main"
-
-if [ ! -x "$main" ]
-then
- main="$GOPATH/bin/gocryptfs_main"
-fi
-if [ ! -x "$main" ]
-then
- echo "Error: gocryptfs_main executable not found. Run ./all.bash to build it."
- exit 1
-fi
-
-# A backgrounded process gets /dev/null as stdin per default.
-# Explicitly set stdin to the current stdin so we can ask the user for input.
-"$main" $* < /proc/self/fd/0 & wait
-# The "& wait" is neccessary because bash only processes signals when
-# executing internal commands
-
-# We did not get USR1 - something went wrong
-exit 1