mirror of https://github.com/pulumi/pulumi.git
25901d95c4
Uses the new TerminateProcessGroup functionality introduced in #13792 to shut down plugins gracefully. Graceful shutdown takes the following form: - Send a termination signal (SIGINT or CTRL_BREAK_EVENT) - Wait up to 1 second for the plugin to exit - Kill it with SIGKILL Note that TerminateProcessGroup kills the entire group so we don't need a separate KillChildren and cmd.Process.Kill(). This change also deprecates cmdutil.KillChildren since we shouldn't really be using SIGKILL as a first resort anyway. Note that this does not modify the behavior of individual plugins. Those will exit as usual but with a SIGINT instead of SIGKILL terminating them. Resolves #9780 |
||
---|---|---|
.. | ||
testdata | ||
args.go | ||
child_unix.go | ||
child_windows.go | ||
console.go | ||
console_password.go | ||
console_test.go | ||
diag.go | ||
exit.go | ||
exit_test.go | ||
profile.go | ||
spinner.go | ||
term.go | ||
term_test.go | ||
term_unix.go | ||
term_windows.go | ||
trace.go |