From 979e6ca1137fa389c37c09d16873f4f9288595d6 Mon Sep 17 00:00:00 2001 From: "toby.zxj" Date: Fri, 24 Jun 2016 10:49:55 +0800 Subject: [PATCH 1/4] fix go build, missing return at end of function --- daemon_windows.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon_windows.go b/daemon_windows.go index 263822b..3ef3a4f 100644 --- a/daemon_windows.go +++ b/daemon_windows.go @@ -74,6 +74,7 @@ func (windows *windowsRecord) Start() (string, error) { if err != nil { return startAction + failed, err } + return startAction + " completed.", nil } // Stop the service @@ -84,6 +85,7 @@ func (windows *windowsRecord) Stop() (string, error) { if err != nil { return stopAction + failed, err } + return stopAction + " completed.", nil } // Status - Get service status From 74d1c3a97f828f56064df7a82ee6bf2a9cba49dc Mon Sep 17 00:00:00 2001 From: "toby.zxj" Date: Fri, 24 Jun 2016 10:55:32 +0800 Subject: [PATCH 2/4] fix tcp echo example --- README.md | 2 +- daemon.go | 2 +- example/myservice.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 61f70c5..38d0cec 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ func handleClient(client net.Conn) { if numbytes == 0 || err != nil { return } - client.Write(buf) + client.Write(buf[:numbytes]) } } diff --git a/daemon.go b/daemon.go index f05186c..2636536 100644 --- a/daemon.go +++ b/daemon.go @@ -127,7 +127,7 @@ Example: if numbytes == 0 || err != nil { return } - client.Write(buf) + client.Write(buf[:numbytes]) } } diff --git a/example/myservice.go b/example/myservice.go index 12fcfe1..0d437b3 100644 --- a/example/myservice.go +++ b/example/myservice.go @@ -113,7 +113,7 @@ func handleClient(client net.Conn) { if numbytes == 0 || err != nil { return } - client.Write(buf) + client.Write(buf[:numbytes]) } } From 4c23726755c9fafd6d31be0b76f0fed07dcff738 Mon Sep 17 00:00:00 2001 From: Igor Dolzhikov Date: Fri, 24 Jun 2016 11:14:52 +0600 Subject: [PATCH 3/4] contributors --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 38d0cec..d2fe1ed 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,7 @@ func main() { - [Mark Berner](https://github.com/mark2b) - [Fatih Kaya](https://github.com/fatihky) - [Jannick Fahlbusch](https://github.com/jannickfahlbusch) +- [TobyZXJ](https://github.com/tobyzxj) All the contributors are welcome. If you would like to be the contributor please accept some rules. - The pull requests will be accepted only in "develop" branch From 7ca172efcd8f9e00afef6e0d6220618e2696b059 Mon Sep 17 00:00:00 2001 From: Igor Dolzhikov Date: Fri, 24 Jun 2016 11:16:01 +0600 Subject: [PATCH 4/4] Bumped version number to 0.5.2 --- daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index 2636536..7a7a229 100644 --- a/daemon.go +++ b/daemon.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. /* -Package daemon 0.5.1 for use with Go (golang) services. +Package daemon 0.5.2 for use with Go (golang) services. Package daemon provides primitives for daemonization of golang services. This package is not provide implementation of user daemon,