From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <4D3BDBE7-5023-4870-89E7-0A84C619941A@ar.aichi-u.ac.jp> References: <4D3BDBE7-5023-4870-89E7-0A84C619941A@ar.aichi-u.ac.jp> Date: Sun, 25 Jan 2015 12:06:54 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a11c35ccefc662b050d7804fd Subject: Re: [9fans] protection against resource exhaustion Topicbox-Message-UUID: 3b6acfb2-ead9-11e9-9d60-3106f5b1d025 --001a11c35ccefc662b050d7804fd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable >there must be a bug in rc. Or maybe it does tail call elimination :) 2015-01-25 10:04 GMT+01:00 arisawa : > thank you, mischief. > > considering after I have posted previous mail, > I have come to think that the script below should fail with error and sto= p > execution. > > maia% cat foo > #!/bin/rc > ./foo > maia% > > current rc does not stop execution. > probably not due to protection problem by kernel. > there must be a bug in rc. > > Kenji Arisawa > > > 2015/01/25 15:16=E3=80=81arisawa =E3=81=AE= =E3=83=A1=E3=83=BC=E3=83=AB=EF=BC=9A > > > > > > Hello 9fans > > > > my mac has a protection below: > > -bash$ cat foo > > #!/bin/sh > > ./foo > > -bash$ ./foo > > ./foo: fork: Resource temporarily unavailable > > -bash$ > > > > on the other hand, Plan 9 does not. > > kernel is protected against such programs, however they are not killed. > > therefore no new process can be created. > > > > does anyone have idea to fix the problem? > > > > Kenji Arisawa > > > > > > > --001a11c35ccefc662b050d7804fd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>there must be a bug in rc.

Or maybe it does tai= l call elimination :)


2015-01-25 10:04 GMT+01:00 arisawa <= arisawa@ar.ai= chi-u.ac.jp>:
thank you, mi= schief.

considering after I have posted previous mail,
I have come to think that the script below should fail with error and stop = execution.

maia% cat foo
#!/bin/rc
./foo
maia%

current rc does not stop execution.
probably not due to protection problem by kernel.
there must be a bug in rc.

Kenji Arisawa

> 2015/01/25 15:16=E3=80=81arisawa <arisawa@ar.aichi-u.ac.JP> =E3=81=AE=E3=83=A1=E3=83=BC=E3= =83=AB=EF=BC=9A
>
>
> Hello 9fans
>
> my mac has a protection below:
> -bash$ cat foo
> #!/bin/sh
> ./foo
> -bash$ ./foo
> ./foo: fork: Resource temporarily unavailable
> -bash$
>
> on the other hand, Plan 9 does not.
> kernel is protected against such programs, however they are not killed= .
> therefore no new process can be created.
>
> does anyone have idea to fix the problem?
>
> Kenji Arisawa
>
>



--001a11c35ccefc662b050d7804fd--