i386/96612: Howto prevent no-respond in freebsd?!

欧阳云汉 fros1234 at yahoo.com
Mon May 1 18:40:21 UTC 2006


>Number:         96612
>Category:       i386
>Synopsis:       Howto prevent no-respond in freebsd?!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 01 18:40:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     欧阳云汉
>Release:        freebsd-i386-6.0
>Organization:
中国重庆三峡学院
>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:
>Unformatted:


More information about the freebsd-i386 mailing list