c++获取当前程序名和pid
c++获取当前程序名和pid
c:getpid(), pthread_self()函数,
获取名称,readlink("/proc/self/exe",,,);
boost::filesystem::read_symlink(path("/proc/self/exe"))
c++获取当前程序名和pid
c:getpid(), pthread_self()函数,
获取名称,readlink("/proc/self/exe",,,);
boost::filesystem::read_symlink(path("/proc/self/exe"))