We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am reading the source code for k3s, I don't know why need this line gspt.SetProcTitle(os.Args[0] + " server")
anyone know it and give some hints.
The text was updated successfully, but these errors were encountered:
I'm try build cross compile based on AMD64 image. but it block by this line: https://github.com/k3s-io/k3s/blob/master/scripts/build#L106
CGO_ENABLED=1 "${GO}" build -tags "$TAGS" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC_SQLITE" -o bin/containerd ./cmd/server/main.go
CGO_ENABLED=1 will block cross compile. so I search and found only gspt.SetProcTitle use C func.
Sorry, something went wrong.
CGO_ENABLED=1 go build -trimpath -tags "apparmor seccomp selinux netgo osusergo" -ldflags "-extldflags -static -X main.gitCommit=v1.0.2-0-g52b36a2d -X main.version=1.0.2 -w -s" -o runc .
K3s must be built with CGO_ENABLED:
k3s/scripts/build
Lines 105 to 106 in 535a919
The reason for calling setproctitle is discussed at #2014
No branches or pull requests
I am reading the source code for k3s, I don't know why need this line
gspt.SetProcTitle(os.Args[0] + " server")
anyone know it and give some hints.
The text was updated successfully, but these errors were encountered: