Skip to content

Need Clarity: why need gspt.SetProcTitle(os.Args[0] + " server") when server run #4501

Answered by brandond
xiaods asked this question in Q&A
Discussion options

You must be logged in to vote

K3s must be built with CGO_ENABLED; doing otherwise is not supported.

k3s/scripts/build

Lines 105 to 106 in 535a919

echo Building server
CGO_ENABLED=1 "${GO}" build -tags "$TAGS" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC_SQLITE" -o bin/containerd ./cmd/server/main.go

The reason for calling setproctitle is discussed at #2014

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by xiaods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4500 on November 15, 2021 23:57.