summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-04-13 22:41:08 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-05-08 21:40:34 +0200
commitccf13f91a2883fe1423499787fa03dd561dfed4d (patch)
tree413c626702caa83017cc09720eef5e0914e302bc /sysdep
parente0cb9c65b837ad5d725761505049755db0112b1c (diff)
android fixes
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/main.c3
-rw-r--r--sysdep/unix/wg_user.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index 1d258f4c..df59daf8 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -567,6 +567,7 @@ unlink_pid_file(void)
void
cmd_shutdown(void)
{
+ log_msg(L_INFO "cmd_shutdown");
if (cli_access_restricted())
return;
@@ -577,6 +578,7 @@ cmd_shutdown(void)
void
async_shutdown(void)
{
+ log_msg(L_INFO "async_shutdown");
DBG("Shutting down...\n");
order_shutdown(0);
}
@@ -584,6 +586,7 @@ async_shutdown(void)
void
sysdep_shutdown_done(void)
{
+ log_msg(L_INFO "sysdep_shutdown_done");
unlink_pid_file();
unlink(path_control_socket);
log_msg(L_FATAL "Shutdown completed");
diff --git a/sysdep/unix/wg_user.h b/sysdep/unix/wg_user.h
index a5e4251a..6ecceecb 100644
--- a/sysdep/unix/wg_user.h
+++ b/sysdep/unix/wg_user.h
@@ -3,7 +3,7 @@
#include "sysdep/config.h"
-#define SOCKET_PATH PATH_RUNSTATEDIR "/wireguard/"
+#define SOCKET_PATH PATH_RUNSTATEDIR "/"
struct pool;
struct wg_device;