Skip to content

Commit 0986371

Browse files
Add note about SIGINT (re issue #100)
1 parent 500562c commit 0986371

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ var (
120120
// but was terminated unexpectedly (probably signaled). In either case, the
121121
// command failed. Callers should check Error first. If nil, then check Exit and
122122
// Complete.
123+
//
124+
// Note that SIGINT (interrupt) does not terminate a program. If caught and the
125+
// program exits, Error will be nil and Complete will be true because the program
126+
// completed as expectedly by its signal handler. See "Signals (Bash Reference Manual)":
127+
// https://www.gnu.org/software/bash/manual/html_node/Signals.html
123128
type Status struct {
124129
Cmd string
125130
PID int

0 commit comments

Comments
 (0)