改nginx进程名过程中用到的宏定义
./configure -D NGX_PROCESS_NAME=nginx-new-name
1 #define __PRINT_FORMAT(name) #name": " 2 #define PRINT_FORMAT(name) __PRINT_FORMAT(name) 3 4 p = ngx_cpystrn((u_char *) ngx_os_argv[0], (u_char *) PRINT_FORMAT(NGX_PROCESS_NAME), 5 ngx_os_argv_last - ngx_os_argv[0]);