From f3d26e038d6204150ce6ba3e4d639713fd20adce Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Wed, 31 May 2017 14:21:32 +0000 Subject: [PATCH] use current directory as default logging socket path --- _docs/debug.md | 2 +- logging/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_docs/debug.md b/_docs/debug.md index 2b69e9e..03a4156 100644 --- a/_docs/debug.md +++ b/_docs/debug.md @@ -8,7 +8,7 @@ CTOP_DEBUG=1 ./ctop While `ctop` is running, you can connect to the logging socket via socat or similar tools: ```bash -socat unix-connect:/tmp/ctop.sock stdio +socat unix-connect:./ctop.sock stdio ``` example output: diff --git a/logging/server.go b/logging/server.go index b6a49ee..525121e 100644 --- a/logging/server.go +++ b/logging/server.go @@ -7,7 +7,7 @@ import ( ) const ( - path = "/tmp/ctop.sock" + path = "./ctop.sock" ) var server struct {