Date: Mon, 1 May 2006 18:35:25 GMT From: "欧阳云汉" <fros1234@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/96612: Howto prevent no-respond in freebsd?! Message-ID: <200605011835.k41IZPOv048570@www.freebsd.org> Resent-Message-ID: <200605011840.k41IeFw4080102@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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",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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605011835.k41IZPOv048570>