Re: lug-bg: system()
- Subject: Re: lug-bg: system()
- From: mitko@xxxxxxx (Dimitar Peikov)
- Date: Tue, 7 May 2002 10:03:54 +0300
On Sun, 5 May 2002 19:39:43 +0300
"Ilia Trendafilov" <edac@xxxxxxxxxxx> wrote:
> Tova e prekrasno, samo che ne e neshto novo. Moje bi az ne obiasnih
> tochno kyde mi e problema sys setrlimit. Znachi kak tochno se slagat
> limitite iasno, ne vidiah niakyde iz man da pishe v kakvi edinici se
> iskat vyprosnite stoinosti, no tova niama chak takova znachenie. Biah
> "ustanovil" oshte che kato se sloji limit na neshto to toi se
> "predava" i vyrhu child processes. Izvikvam procesyt sys system()
> otnovo, no ne mislia che v tova e problema. Limityt si go ima. Ne
> mojah da razbera obache zashto nezavisimo dali procesa izpolzva 16 ili
> 32 MB, toi se izpylniava samo ako RLIMIT_DATA e nad 79000-80000, no i
> za dvata sluchaia pri edno i syshto chislo...
RLIMIT_DATA ti ogranichava DATA segmenta da e 79-80Mb v sluchaja. Tova e razmera za danni ili heap (za malloc()). Tova oznachava che procesa kojto se opitvash da pusnesh iziskva tolkova mjasto za da trugne. BTW: system() puska default shell-a na user-a! Imaj go v predvid.
--
Dimitar Peikov
Programmer Analyst
Globalization Group
"We Build e-Business"
RILA Solutions
27 Building, Acad.G.Bonchev Str.
1113 Sofia, Bulgaria
phone: (+359 2) 9797320
phone: (+359 2) 9797300
fax: (+359 2) 9733355
http://www.rila.com
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|