gh-475: Fix issues in third_party/proctitle.c
* add proctitle.h; * add config-time detection of setproctitle() syscall; * fixing program_invocation_(short)?_name globals (glibc); * fixing progname (getprogname(), initialized with argv[0]); * this module now works on osx; * fix osx ps displaying garbage (argc-1 extra \0 necessary); * general refactoring; * fix linux proctitle truncation (init_set_proctitle was called with argv+1, this is wrong); * CAVEAT: 'progname: ' prefix no longer present, will fix later
Showing
- CMakeLists.txt 4 additions, 0 deletionsCMakeLists.txt
- src/main.cc 1 addition, 1 deletionsrc/main.cc
- src/trivia/config.h.cmake 4 additions, 0 deletionssrc/trivia/config.h.cmake
- third_party/proctitle.c 184 additions, 146 deletionsthird_party/proctitle.c
- third_party/proctitle.h 47 additions, 0 deletionsthird_party/proctitle.h
Loading
Please register or sign in to comment