分页: 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