分页: 1 / 1
求助: system shell 高手进
发表于 : 2009-08-04 17:25
由 zxc381219
最近遇到一个问题,我的一个linux进程(非常大,占用机器70%的内存),在进程运行过程中,我想执行一个shell命令,起初是调用system("shell命令"),但是system会fork一个子进程来完成这个操作,但是这时内存已经不够用(不足以复制出新的子进程), 请问各位牛人,怎么办,什么手段都行。
Re: 求助: system shell 高手进
发表于 : 2009-08-04 17:27
由 leeaman
ee快来~~~
Re: 求助: system shell 高手进
发表于 : 2009-08-04 21:32
由 cnkilior
vfork?
Re: 求助: system shell 高手进
发表于 : 2009-08-05 12:24
由 x007007007
不明白
Re: 求助: system shell 高手进
发表于 : 2009-08-05 12:27
由 eexpress
什么语言里面调的嘛
``试试。
Re: 求助: system shell 高手进
发表于 : 2009-08-08 22:24
由 O_O_BOT
exec
Re: 求助: system shell 高手进
发表于 : 2009-08-08 22:33
由 BigSnake.NET
用 vfork