summaryrefslogtreecommitdiff
path: root/sd_daemon/watchdog.go
diff options
context:
space:
mode:
Diffstat (limited to 'sd_daemon/watchdog.go')
-rw-r--r--sd_daemon/watchdog.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/sd_daemon/watchdog.go b/sd_daemon/watchdog.go
index b32f470..be96970 100644
--- a/sd_daemon/watchdog.go
+++ b/sd_daemon/watchdog.go
@@ -31,12 +31,11 @@ import (
// WATCHDOG_USEC and WATCHDOG_PID, which will cause further calls to
// this function to fail.
//
-// If an error is returned, then the duration is 0. If the service
-// manager is not expecting a keep-alive notification from this
-// process (or if this has already been called with unsetEnv=true),
-// then ErrDisabled is returned. If there is an error parsing the
-// service manager's watchdog request, then an appropriate other error
-// is returned.
+// If an error is not returned, then the duration returned is greater
+// than 0; if an error is returned, then the duration is 0. If the
+// service manager is not expecting a keep-alive notification from
+// this process (or if this has already been called with
+// unsetEnv=true), then the error is ErrDisabled.
func WatchdogEnabled(unsetEnv bool) (time.Duration, error) {
if unsetEnv {
defer func() {