From nobody@FreeBSD.org  Mon May  1 18:35:26 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5CA3F16A403
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 May 2006 18:35:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2B4DD43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 May 2006 18:35:26 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k41IZQCl048571
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 1 May 2006 18:35:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k41IZPOv048570;
	Mon, 1 May 2006 18:35:25 GMT
	(envelope-from nobody)
Message-Id: <200605011835.k41IZPOv048570@www.freebsd.org>
Date: Mon, 1 May 2006 18:35:25 GMT
From: "&#27431;&#38451;&#20113;&#27721;" <fros1234@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Howto prevent no-respond in freebsd?!
X-Send-Pr-Version: www-2.3

>Number:         96612
>Category:       i386
>Synopsis:       Howto prevent no-respond in freebsd?!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 01 18:40:14 GMT 2006
>Closed-Date:    Wed May 17 17:40:01 GMT 2006
>Last-Modified:  Wed May 17 17:40:01 GMT 2006
>Originator:     &#27431;&#38451;&#20113;&#27721;
>Release:        freebsd-i386-6.0
>Organization:
&#20013;&#22269;&#37325;&#24198;&#19977;&#23777;&#23398;&#38498;
>Environment:
FreeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #0:Mon Apr 17 20:57:14 UTC 2006 root@:/usr/src/sys/i386/compile/GENERIC i386
>Description:
I write the code like this:

-------------------------------------------
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>

int main(){
  while(1){
     system("./a.out");
     signal(main(),SIG_IGN);
  }
  return 0;
}
-------------------------------------------

When "gcc -Wall ./test.c" and "./a.out"&#65292;the system will be more and more slowly!
after about 1 minute,the system will be no-respond besides do a switch  
 of tty!  
Is there a way to prevent the circs when I system this code?!
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: =?ISO-8859-15?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de>
To: bug-followup@FreeBSD.org,  fros1234@yahoo.com
Cc:  
Subject: Re: i386/96612: Howto prevent no-respond in freebsd?!
Date: Tue, 02 May 2006 07:35:02 +0200

 Restrict the number of maximum processes of a user.
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Wed May 17 17:39:08 UTC 2006 
State-Changed-Why:  
Question was answered by Bjoern. 

Please ask further questions on the freebsd-questions mailinglist. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96612 
>Unformatted:
