File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,13 @@ import (
27
27
var (
28
28
// ErrTimeout is returned when a script times out.
29
29
ErrTimeout = xerrors .New ("script timed out" )
30
- // ErrTimeout is returned when a script times out.
30
+ // ErrOutputPipesOpen is returned when a script exits leaving the output
31
+ // pipe(s) (stdout, stderr) open. This happens because we set WaitDelay on
32
+ // the command, which gives us two things:
33
+ //
34
+ // 1. The ability to ensure that a script exits (this is important for e.g.
35
+ // blocking login, and avoiding doing so indefinitely)
36
+ // 2. Improved command cancellation on timeout
31
37
ErrOutputPipesOpen = xerrors .New ("script exited without closing output pipes" )
32
38
33
39
parser = cron .NewParser (cron .Second | cron .Minute | cron .Hour | cron .Dom | cron .Month | cron .DowOptional )
You can’t perform that action at this time.
0 commit comments