Skip to content

Commit

Permalink
Add note about SIGINT (re issue #100)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-nichter committed Jun 23, 2024
1 parent 500562c commit 0986371
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ var (
// but was terminated unexpectedly (probably signaled). In either case, the
// command failed. Callers should check Error first. If nil, then check Exit and
// Complete.
//
// Note that SIGINT (interrupt) does not terminate a program. If caught and the
// program exits, Error will be nil and Complete will be true because the program
// completed as expectedly by its signal handler. See "Signals (Bash Reference Manual)":
// https://www.gnu.org/software/bash/manual/html_node/Signals.html
type Status struct {
Cmd string
PID int
Expand Down

0 comments on commit 0986371

Please sign in to comment.