Skip to content

Commit 83c8bdd

Browse files
Update server.cpp
Change process name for Cosmo. Signed-off-by: Brad Hutchings <[email protected]>
1 parent 2cab571 commit 83c8bdd

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)