From 09bc4c424a72b861033cfb0f6dc752491e65163a Mon Sep 17 00:00:00 2001 From: Naitik Shah Date: Sun, 6 Oct 2013 11:07:31 -0700 Subject: [PATCH] dont throw away SetDeadline error --- grace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grace.go b/grace.go index de6d259..5f59f77 100644 --- a/grace.go +++ b/grace.go @@ -81,7 +81,7 @@ func (l *listener) Close() error { // by setting the deadline. if os.Getppid() == 1 { if ld, ok := l.Listener.(deadliner); ok { - ld.SetDeadline(timeInPast) + err = ld.SetDeadline(timeInPast) } else { fmt.Fprintln(os.Stderr, "init activated server did not have SetDeadline") }