博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
更改进程名称-prctl
阅读量:6995 次
发布时间:2019-06-27

本文共 477 字,大约阅读时间需要 1 分钟。

hot3.png

#include 
#include
#include
#include
#ifndef PR_SET_NAME#define PR_SET_NAME 15#endif#ifndef PR_GET_NAME#define PR_GET_NAME 16#endifstatic char *arg_start;static char *arg_end;static char *env_start;void init_proc_title(int argc, char **argv) { int i; arg_start = argv[0]; arg_end = argv[argc-1] + strlen(argv[argc-1])+1; env_start = environ[0]; for(i=0; i

转载于:https://my.oschina.net/zhuzihasablog/blog/132463

你可能感兴趣的文章