Skip to content

Commit d33545c

Browse files
Merge pull request #18 from BradHutchings/work-in-progress
Update server.cpp
2 parents 2cab571 + 83c8bdd commit d33545c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/server/server.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3485,6 +3485,9 @@ int main(int argc, char ** argv) {
34853485
// llama-server-one START
34863486
// This implements an args file feature inspired by llamafile's.
34873487
#ifdef COSMOCC
3488+
// Keep the build from showing up as ape in the process list.
3489+
pthread_setname_np(pthread_self(), "llama-server-one");
3490+
34883491
// Args files if present. The names are different to remove confusion during packaging.
34893492
const std::string& argsFilename = "llama-server-one-args";
34903493
const std::string& zipArgsFilename = "/zip/default-args";

0 commit comments

Comments
 (0)