cmd: a command gets a context and its process's streams #3
Loading…
Reference in a new issue
No description provided.
Delete branch "cmd-process"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A command now runs as
func(ctx, args, process):processcarries stdin, stdout, stderr, the environment and the directory;ctxends on SIGINT and SIGTERM. Until now a command got stderr alone, which the stand-ingc(stdin and stdout) and the host (SIGTERM) cannot work with. No behaviour changes: every command still fails "not implemented".It touches
main.go, the seam roomcity-9a wires the server through, so it goes first and alone: spec-bb1.34 and spec-bb1.33 both build on it.Verified:
go vet ./...,go test ./....