Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitOrStop ¶
func WaitOrStop(ctx context.Context, cmd *exec.Cmd, interrupt os.Signal, killDelay time.Duration) error
WaitOrStop waits for the already-started command cmd by calling its Wait method.
If cmd does not return before ctx is done, WaitOrStop sends it the given interrupt signal. If killDelay is positive, WaitOrStop waits that additional period for Wait to return before sending os.Kill.
This function is copied from <https://pkg.go.dev/golang.org/x/build/internal#WaitOrStop>.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.