C/C++: linux下打开新进程
2014-06-26 15:57
120 查看
#include <iostream> #include <unistd.h> using namespace std; int main() { cout << "curr pid " << getpid() << endl; char *args[] = {"/bin/ls", NULL}; if(execve("/bin/ls", args, NULL)<0) cout<<"open new id error"<<endl; return 0; }
相关文章推荐
- 关于linux的最大打开进程及最大打开文件数 - linux - 第六空间
- linux默认情况下,一个进程最多能打开多少文件?
- Linux下查看进程打开的文件句柄数
- 一个进程能够打开最大文件句柄数设到多大才合适(Linux) (转)
- 修改Linux打开单个文件的进程数
- 将 Win32 C/C++ 应用程序迁移到 POWER 上的 Linux,第 1 部分: 进程、线程和共享内存服务 (转载)
- 关于linux中进程打开同一文件操作的一点分析
- C++监测资源泄漏(二) ---- Linux 进程内存布局
- linux下进程的最大线程数、进程最大数、进程打开的文件数
- Linux下查看进程打开的文件句柄数
- linux默认情况下,一个进程最多能打开多少文件?
- Linux系统 查看修改进程打开文件数上限
- 将Win32 C/C++应用程序迁移到Linux-进程、线程和共享内存(转)
- Linux下C/C++查找某一进程
- C/C++内存分配与Linux内存管理进程所涉及到的五个数据段
- 将 Win32 C/C++ 应用程序迁移到 POWER 上的 Linux,第 1 部分: 进程、线程和共享内存服务 (转)
- 将Win32 C/C++应用程序迁移到Linux-进程、线程和共享内存
- 利用lsof去查看Unix/Linux进程打开了哪些文件
- linux下进程的最大线程数、进程最大数、进程打开的文件数
- Unix/Linux C++应用开发-Linux下进程管理